allscorpion.bsky.social
@allscorpion.bsky.social
I would like to see those exercises please
December 29, 2024 at 12:24 PM
Also a different benchmark since I think the above one is just testing console.log at that point. Bit more inline with the original benchmark though with Object.keys being the fastest

tinyurl.com/2dfvbyt5
JS Benchmark
A straightforward online JavaScript benchmarking tool and REPL with support for ES modules and libraries.
tinyurl.com
December 13, 2024 at 1:50 PM
That's a good point. What would constitute the code not being dead? I've added a console log which I believe should force the code to always run but now Object.entries is the fastest by a small margin. At least from my testing on chrome.

tinyurl.com/3vfja4d3
JS Benchmark
A straightforward online JavaScript benchmarking tool and REPL with support for ES modules and libraries.
tinyurl.com
December 13, 2024 at 1:32 PM
Am I missing something or is Object.keys faster? tinyurl.com/yr8yz85a even if you remove the Object.hasOwn check its still a bit slower
JS Benchmark
A straightforward online JavaScript benchmarking tool and REPL with support for ES modules and libraries.
tinyurl.com
December 10, 2024 at 10:16 PM