Benchmark name When Created
PutImageData vs DrawImage (with getImageData removed)

GetImageData with PutImageData vs just DrawImage with getImageData removed

5 days ago
JSON.parse() vs. eval() large object 2 5 days ago
set vs array find if exists 2 6 days ago
template vs documentFragment 6 days ago
OOP-ish SoA vs AoS

Same as usual Float Array base SoA vs AoS but with classes and objects instead of raw number. I was cursious if the benefit of SoA still holds true even with classes. Same as https://www.measurethat.net/Benchmarks/Show/1909/0/soa-vs-aos but with classes. And some window hackery to get around dated benchmarking suite...

6 days ago
Classes SoA vs AoS

Same as usual Float Array base SoA vs AoS but with classes and objects instead of raw number. I was cursious if the benefit of SoA still holds true even with classes.

6 days ago
createContextualFragment vs innerHMTL - w/ Dom Destroy and Replace

Test speed of createContextualFragment append nodes vs replacing innerHTML.

6 days ago
cloneNode(true) vs innerHMTL - w/ Dom Destroy and Replace

Test speed of clone / append nodes vs replacing innerHTML.

6 days ago
6 properties - style.setProperty vs style.cssText vs style vs Object.assign vs setAttribute (with string concat) 6 days ago
cloneNode(true) vs innerHMTL - w/ Destroy DOM fixed 6 days ago
cloneNode(true) vs innerHMTL - w/ Destroy DOM 6 days ago
cloneNode(true) vs innerHMTL 6 days ago
range.createContextualFragment vs template.innerHtml Fork 6 days ago
React createElement vs cloneElement 7 days ago
UTF-8 vs UTF-16 WASM String Interface 7 days ago
dataset keys vs attributes.filter

checks which is faster between dataset and filtering attributes

7 days ago
JS BigInt big number performance v9

Compare Number vs BigInt for big numbers

7 days ago
array find vs new Set has inside a filter

I created two arrays: one with 100 numbers and another with 10,000 random numbers. Then, i filtered the first array to check for the presence of the number 5 in the second array using two different methods. In the first test case, i used the .find() method, which iterates through the 10,000-number array to locate the number 5 and returns the first matching value. In the second test case, i converted the 10,000-number array into a Set and used the .has() method to check for the presence of the number 5. The goal is to compare both approaches and determine which one is faster and which one use less memory.

7 days ago
Test direct and destructuring performances 7 days ago
Date constructor inputs (extended by input of pre-existing Date object) 7 days ago
Mul vs Square Root functions

Measure the performance of the Power and Square Root functions. Conclusion: The underlying math logic seems to be the same, regardless of the function used.

7 days ago
Lodash UniqBy vs. Vanilla alternative 7 days ago
Map copying 7 days ago
Map.values().toArray() vs Array.from(Map.values()) vs [...Map.values()] 7 days ago
Array.filter vs Array.splice 7 days ago

 Create Your benchmarks