Re: [v8-users] v8::platform::PumpMessageLoop().
V8 posts certain tasks to the foreground message loop. If you don't implement one yourself and expose it via a custom v8::Platform, you'll have to pump the message loop of the default platform from time to time to execute those tasks. V8 also posts tasks to background threads - those threads will pump their own message loops best -jochen On Tue, Oct 13, 2015 at 6:41 AM Jane Chen wrote: > Looking at v8 4.7.0, both shell.cc and d8.cc calls: > > while (v8::platform::PumpMessageLoop(platform, isolate)) continue; > > after running a script. What's the purpose of this? > > As always, thanks in advance. > > > -- > -- > v8-users mailing list > v8-users@googlegroups.com > http://groups.google.com/group/v8-users > --- > You received this message because you are subscribed to the Google Groups > "v8-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to v8-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [v8-users] 64bit performance is lower than 32bit in android HUAWEI P8
On Tue, Oct 13, 2015 at 4:21 AM, Yong Wang wrote: > Hi everyone: > >we are using V8.3.27.34.15 > That's more than a year old and has known security issues. I wouldn't use that to browse the web. > in android device HUAWEI P8, and found that 64bit performance is lower > than 32bit. >I think 64bit device should be faster. > Why? >below is benchmark score: > >64 bit: >root@HWGRA:/data/local/tmp/v8 # ./d8_64 run.js > >Richards: 5193 >DeltaBlue: 7134 >Crypto: 6045 >RayTrace: 7237 >EarleyBoyer: 4773 >RegExp: 851 >Splay: 4409 >NavierStokes: 6287 > >Score (version 7): 4546 > >32 bit: >root@HWGRA:/data/local/tmp/v8 # ./d8_32 run.js > >Richards: 5299 >DeltaBlue: 7729 >Crypto: 5008 >RayTrace: 8214 >EarleyBoyer: 6442 >RegExp: 893 >Splay: 4735 >NavierStokes: 4651 > >Score (version 7): 4636 > > -- > -- > v8-users mailing list > v8-users@googlegroups.com > http://groups.google.com/group/v8-users > --- > You received this message because you are subscribed to the Google Groups > "v8-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to v8-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [v8-users] 64bit performance is lower than 32bit in android HUAWEI P8
thanks for reply. 在 2015年10月13日星期二 UTC+8下午4:15:38,Jakob Kummerow写道: > > On Tue, Oct 13, 2015 at 4:21 AM, Yong Wang > wrote: > >> Hi everyone: >> >>we are using V8.3.27.34.15 >> > > That's more than a year old and has known security issues. I wouldn't use > that to browse the web. > I'll test with latest version later. > > >> in android device HUAWEI P8, and found that 64bit performance is lower >> than 32bit. >>. >> > > Why? > just because 64bit register is much more than 32bit > > -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [v8-users] 64bit performance is lower than 32bit in android HUAWEI P8
在 2015年10月13日星期二 UTC+8下午4:15:38,Jakob Kummerow写道: > > On Tue, Oct 13, 2015 at 4:21 AM, Yong Wang > wrote: > >> Hi everyone: >> >>we are using V8.3.27.34.15 >> > > That's more than a year old and has known security issues. I wouldn't use > that to browse the web. > I'll test with latest version later. > by the way,could you give me more info about the security issues > > in android device HUAWEI P8, and found that 64bit performance is lower than >> 32bit. >>I think 64bit device should be faster. >> > > Why? > just because 64bit register is much more than 32bit > >>below is benchmark score: >> >>64 bit: >>root@HWGRA:/data/local/tmp/v8 # ./d8_64 run.js >> >>Richards: 5193 >>DeltaBlue: 7134 >>Crypto: 6045 >>RayTrace: 7237 >>EarleyBoyer: 4773 >>RegExp: 851 >>Splay: 4409 >>NavierStokes: 6287 >> >>Score (version 7): 4546 >> >>32 bit: >>root@HWGRA:/data/local/tmp/v8 # ./d8_32 run.js >> >>Richards: 5299 >>DeltaBlue: 7729 >>Crypto: 5008 >>RayTrace: 8214 >>EarleyBoyer: 6442 >>RegExp: 893 >>Splay: 4735 >>NavierStokes: 4651 >> >>Score (version 7): 4636 >> >> -- >> -- >> v8-users mailing list >> v8-u...@googlegroups.com >> http://groups.google.com/group/v8-users >> --- >> You received this message because you are subscribed to the Google Groups >> "v8-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to v8-users+u...@googlegroups.com . >> For more options, visit https://groups.google.com/d/optout. >> > > -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [v8-users] 64bit performance is lower than 32bit in android HUAWEI P8
On Tue, Oct 13, 2015 at 11:32 AM, Yong Wang wrote: > > > 在 2015年10月13日星期二 UTC+8下午4:15:38,Jakob Kummerow写道: >> >> On Tue, Oct 13, 2015 at 4:21 AM, Yong Wang wrote: >> >>> Hi everyone: >>> >>>we are using V8.3.27.34.15 >>> >> >> That's more than a year old and has known security issues. I wouldn't use >> that to browse the web. >> I'll test with latest version later. >> > by the way,could you give me more info about the security issues >> > For starters, look at the patches merged between 3.27.34.15 and 3.27.34.21. In addition, when the 3.27 branch became unsupported, we stopped backmerging patches, so some bugs fixed by merges to 3.28/3.29/... might well be broken in 3.27. > >> > in android device HUAWEI P8, and found that 64bit performance is lower >>> than 32bit. >>>I think 64bit device should be faster. >>> >> >> Why? >> just because 64bit register is much more than 32bit >> > Yes, 64 is a bigger number than 32. Which is why a 64-bit program will consume more memory than a 32-bit version of the same program. But there is no reason why wider registers would be faster. On the contrary: the increased memory consumption typically incurs a performance cost: caches fill up faster, copying larger objects is slower, and so on. >below is benchmark score: >>> >>>64 bit: >>>root@HWGRA:/data/local/tmp/v8 # ./d8_64 run.js >>> >>>Richards: 5193 >>>DeltaBlue: 7134 >>>Crypto: 6045 >>>RayTrace: 7237 >>>EarleyBoyer: 4773 >>>RegExp: 851 >>>Splay: 4409 >>>NavierStokes: 6287 >>> >>>Score (version 7): 4546 >>> >>>32 bit: >>>root@HWGRA:/data/local/tmp/v8 # ./d8_32 run.js >>> >>>Richards: 5299 >>>DeltaBlue: 7729 >>>Crypto: 5008 >>>RayTrace: 8214 >>>EarleyBoyer: 6442 >>>RegExp: 893 >>>Splay: 4735 >>>NavierStokes: 4651 >>> >>>Score (version 7): 4636 >>> >>> -- >>> -- >>> v8-users mailing list >>> v8-u...@googlegroups.com >>> http://groups.google.com/group/v8-users >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "v8-users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to v8-users+u...@googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- > -- > v8-users mailing list > v8-users@googlegroups.com > http://groups.google.com/group/v8-users > --- > You received this message because you are subscribed to the Google Groups > "v8-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to v8-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [v8-users] v8::platform::PumpMessageLoop().
On Tue, Oct 13, 2015 at 3:06 AM, Jochen Eisinger wrote: > If you don't implement one yourself and expose it via a custom > v8::Platform, you'll have to pump the message loop of the default platform > from time to time to execute those tasks. > I never knew this (it's not documented anywhere that I've seen), but my app appears to work fine without it. What will go wrong if I don't pump the foreground message loop? -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [v8-users] v8::platform::PumpMessageLoop().
So sounds like PumpMessageLoop can happen in the background after I return the result of a query, maybe even after I trigger garbage collection? On Tuesday, October 13, 2015 at 12:07:12 AM UTC-7, Jochen Eisinger wrote: > > V8 posts certain tasks to the foreground message loop. If you don't > implement one yourself and expose it via a custom v8::Platform, you'll have > to pump the message loop of the default platform from time to time to > execute those tasks. > > V8 also posts tasks to background threads - those threads will pump their > own message loops > > best > -jochen > > On Tue, Oct 13, 2015 at 6:41 AM Jane Chen > > wrote: > >> Looking at v8 4.7.0, both shell.cc and d8.cc calls: >> >> while (v8::platform::PumpMessageLoop(platform, isolate)) continue; >> >> after running a script. What's the purpose of this? >> >> As always, thanks in advance. >> >> >> -- >> -- >> v8-users mailing list >> v8-u...@googlegroups.com >> http://groups.google.com/group/v8-users >> --- >> You received this message because you are subscribed to the Google Groups >> "v8-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to v8-users+u...@googlegroups.com . >> For more options, visit https://groups.google.com/d/optout. >> > -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.