by 29athrowaway · 6y ago · 0 comments
2) v8 doesn't make your code blazing fast by default. It has many optimizations but your code may be written in a way that v8 cannot fully optimize.
3) I recommend this tool as an alternative to using "time": https://github.com/sharkdp/hyperfine
So this is not a benchmark. Just a fun observation of a trend. A proper benchmark would require to have a dedicated machine with no other softwares running, hyperthreading off and run each of them a 100 times, without fs cache.
EDIT: gonna edit the original post with hyperfine results.