Open kaisatec opened 9 years ago
my code
var a=0; var j=10000; for (var i=0; i<=j;i++){ a=a+i_i_30+i/2+i/2; }
for eval(js)
1 ms
for sandbox
188ms
is there a way to improve the speed?
Thanks
I suspect that this is a fixed delay caused by starting a new process etc. The actual execution should not be slower, but loading v8 and node adds some overhead. If you double the loop size, does the time double?
my code
for eval(js)
1 ms
for sandbox
188ms
is there a way to improve the speed?
Thanks