Re:Never use a dependency that you could replace with an aft...
by cogman10 on Tuesday August 11, 2020 @05:24PM
(#24126151)
I know, I read the benchmark suite code. The benchmark suite itself isn't doing the things I said it isn't doing.
Sure, It's popular. It's also wrong.
Re:Never use a dependency that you could replace with an aft...
by Ajedi32 on Tuesday August 11, 2020 @05:27PM
(#24126175)
Okay, you win. I'm not going to read the entire source of that package just to make a point. Though I do find it strange that the author of that library would write an entire blog post on the topic and then not take his own advice in the implementation of the library he wrote.
Luckily, they didn't, and instead pulled in the the `benchmark` library as a development dependency[1]. The author of said library works on V8, and already considered all those problems and much, much, more[2].
[1]: https://github.com/left-pad/left-pad/blob/master/perf/perf.j...
[2]: https://mathiasbynens.be/notes/javascript-benchmarking