function test1() {
function test2() {
function test3() {
function test4() {
function test5() {
function test6() {
function test7() {
function test8() {
x= new Error;
return 1;
}
return test8();
}
return test7();
}
return test6();
}
return test5();
}
return test4();
}
return test3();
}
return test2();
}
before = time();
for (let i = 1; i < 50; i ++) {
test1();
}
print(time() - before);
--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/v8-users/f27ad537-86c5-4f3e-be8c-b25b73dea7af%40googlegroups.com.
docker -v /tmp/:/tmp/ run -it arangodb:3.6.1 /bin/sh
cd /usr/share/arangodb3; /usr/bin/arangosh --javascript.execute /tmp/test.js JSON parse: 11.244979858398438
stack frames A: 0.0011951923370361328
stack frames B: 0.0011119842529296875
stack frames c: 0.0015842914581298828
stack frames c: 0.0014750957489013672
stack frames d: 0.0006735324859619141
stack frames d: 0.0005927085876464844docker run -v /tmp/:/tmp/ -it arangodb/arangodb-preview:devel-nightly /bin/sh
cd /usr/share/arangodb3; /usr/bin/arangosh '--javascript.v8-options=--enable-lazy-source-positions' --javascript.execute /tmp/test.js
JSON parse: 4.552847385406494
stack frames A: 0.001809835433959961
stack frames B: 0.0014481544494628906
stack frames c: 0.0021665096282958984
stack frames c: 0.002079486846923828
stack frames d: 0.0009906291961669922
stack frames d: 0.001043081283569336cd /usr/share/arangodb3; /usr/bin/arangosh '--javascript.v8-options=--no-enable-lazy-source-positions' --javascript.execute /tmp/test.js
JSON parse: 4.576668739318848
stack frames A: 0.0018227100372314453
stack frames B: 0.0014328956604003906
stack frames c: 0.0021677017211914062
stack frames c: 0.002074718475341797
stack frames d: 0.0009608268737792969
stack frames d: 0.0008444786071777344To unsubscribe from this group and stop receiving emails from it, send an email to v8-u...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/v8-users/d649c0ed-d996-4dfa-b387-5e65caeaf45f%40googlegroups.com.
This 600x slowdown was inside of arangosh due to pasting - its not there anymore in the numbers of my previous post - sorry I didn't mention it explicitely.However, if you compare the numbers of my previous post, there still is an offset of ~40% which I'd still call significant?
--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/v8-users/cdeb797d-c2e3-4a8d-924f-cd484159e18f%40googlegroups.com.
When I ran the test in d8 (unfortunately I didn't keep the old binaries around so can't quickly verify) I saw at most a 10% difference between 7.1 vs 7.9.Is this manifesting somewhere other than in your micro benchmark? Because this looks to be pretty much the worst case scenario, the function doesn't do anything except construct an Error object which requires constructing a stack trace and it needs to build 9 frames each time, but unless this is causing a problem in real code, I'm not sure how much attention it warrants.
On Wed, 12 Feb 2020 at 14:42, Wilfried Gösgens <doth...@gmail.com> wrote:
This 600x slowdown was inside of arangosh due to pasting - its not there anymore in the numbers of my previous post - sorry I didn't mention it explicitely.--However, if you compare the numbers of my previous post, there still is an offset of ~40% which I'd still call significant?
--
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-u...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/v8-users/0e87e1f2-1814-4c93-8057-f2982b77f20c%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/v8-users/0e87e1f2-1814-4c93-8057-f2982b77f20c%40googlegroups.com.