Benchmark name When Created
new Array() vs [] one year ago
Fastest isEmpty(Object)

You don't need to make add for loops in your test scenarios, the benchmark does it itself.

one year ago
"array length === 0" vs "!(0 in array)"

this is really stupid but is surprisingly close i guess

one year ago
React svg inline vs use 500x Phosphor Bell one year ago
React svg inline vs use 500x (2) one year ago
Loadash vs underscore simple and complex one year ago
lodash uniq vs set->array one year ago
Ctrl: flatMap() vs filter().map() vs reduce() v2

flatMap() vs filter() & map() vs reduce()

one year ago
Ctrl: flatMap() vs filter().map() vs reduce()

flatMap() vs filter() & map() vs reduce()

one year ago
javascript LARGE concat vs spread operator vs push v4 one year ago
map vs obj vs array 2 one year ago
map vs obj vs array one year ago
javascript LARGE concat vs spread operator vs push v3 one year ago
if vs callback vs currying condition comparison ver_2: static handle one year ago
javascript LARGE concat vs spread operator vs push one year ago
Map vs Array vs Set vs Object set uint32 key speed fork one year ago
1k1po2jjajsjsapa

aaaaa

one year ago
Arrow function vs normal function comparison 3 one year ago
scrollTop vs scrollTo vs scrollBy vs scroll one year ago
Spread vs Object.assign vs Object.keys with forEach (without new object)1 one year ago
structuredClone vs spread vs Object.assign + more

Note!: none of these tests actually do the same thing, and the data in the example is simple. consider also using arrays: those are nice. Some of these are shallow, some of these are deep-ish. Data is lost through JSON serialization and back, and more data would be lost in JSON and other methods depending on the data stored.

one year ago
Array concat vs spread operator vs push (via for loop)

Compare the new ES6 spread operator with the traditional concat() method and push

one year ago
Includes vs. IndexOf vs. Filter vs. Find vs. FindIndex vs. Some vs. Map one year ago
String manipulation performance test v2 one year ago
Native Loop one year ago

 Create Your benchmarks