Re: [v8-users] Performance Issues creating an Isolate and Context version 3.3 vs 4.5

2015-11-24 Thread Nick Sorrentino
We are embedding V8 into our shared library that is accessed in two ways. The first is through a node module we built. We also have daemonized services that access the library directly, not through node. We are seeing performance problems in both, and think there may be a problem with the V8

Re: [v8-users] Performance Issues creating an Isolate and Context version 3.3 vs 4.5

2015-11-24 Thread Jakob Kummerow
How do you link your embedding application? On Tue, Nov 24, 2015 at 1:13 AM, Nick Sorrentino wrote: > Yes I have the same results when running d8, so it must be an issue in the > way I have it built up. Do I need to initialize V8 different now to > utilize snapshots? Or

Re: [v8-users] Performance Issues creating an Isolate and Context version 3.3 vs 4.5

2015-11-24 Thread Chia-Wen Ho
On Tuesday, November 24, 2015 at 9:33:05 PM UTC+8, Jakob Kummerow wrote: > > On Tue, Nov 24, 2015 at 2:11 PM, Chia-Wen Ho > wrote: > >> Hi Jakob, >> >> One interesting point to me here. You mention in "3.32 was just a random >> daily snapshot". What kind of objects will

Re: [v8-users] Performance Issues creating an Isolate and Context version 3.3 vs 4.5

2015-11-24 Thread Chia-Wen Ho
Hi Jakob, One interesting point to me here. You mention in "3.32 was just a random daily snapshot". What kind of objects will be included in the snapshot? I am also doing the upgrade from 3.25 to 4.5. For my application, I need to replace all original "Error Object" with my customized one

Re: [v8-users] Performance Issues creating an Isolate and Context version 3.3 vs 4.5

2015-11-24 Thread Jakob Kummerow
On Tue, Nov 24, 2015 at 2:11 PM, Chia-Wen Ho wrote: > Hi Jakob, > > One interesting point to me here. You mention in "3.32 was just a random > daily snapshot". What kind of objects will be included in the snapshot? > Sorry, I didn't mean that in the "snapshot=off" sense. I

Re: [v8-users] Performance Issues creating an Isolate and Context version 3.3 vs 4.5

2015-11-23 Thread Jakob Kummerow
Well, for me turning the snapshot on or off reproduces exactly what you're seeing, and I'm not seeing any other regressions: current tip of tree: $ time out/x64.release/d8 -e "" real*0m0.011s* user0m0.003s sys 0m0.008s current tip of tree, snapshot=off: $ time out/x64.release/d8 -e

Re: [v8-users] Performance Issues creating an Isolate and Context version 3.3 vs 4.5

2015-11-23 Thread Nick Sorrentino
Yes I have the same results when running d8, so it must be an issue in the way I have it built up. Do I need to initialize V8 different now to utilize snapshots? Or possibly a change to my make script? The embedders guide mentions a method InitializeExternalStartupData, but that looks like

Re: [v8-users] Performance Issues creating an Isolate and Context version 3.3 vs 4.5

2015-11-21 Thread Nick Sorrentino
Sorry, I should have mentioned, we did try with both snapshot on and off and still had the same performance issue. On Saturday, November 21, 2015 at 3:26:15 AM UTC-8, Jakob Kummerow wrote: > > The purpose of the snapshot is to speed up Isolate and Context creation. > If you build with

Re: [v8-users] Performance Issues creating an Isolate and Context version 3.3 vs 4.5

2015-11-21 Thread Jakob Kummerow
The purpose of the snapshot is to speed up Isolate and Context creation. If you build with snapshot=off, startup will be slower. (Also, I'm really glad you're moving away from version 3.32.3, which was just a random daily snapshot, not suitable for production use.) On Sat, Nov 21, 2015 at 2:34

[v8-users] Performance Issues creating an Isolate and Context version 3.3 vs 4.5

2015-11-20 Thread Nick Sorrentino
We recently updated our version of V8 from 3.32.3 to 4.5.103.35. We are seeing a major performance impact on Isolate and Context creation. In version 4.1 we were seeing times around 6ms and on 4.5 we are seeings times around 45ms. The code we are benching marking is below. Any guidance