Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

getElementsByClassName VS querySelectorAll (simple comparison)

A simple comparison of performance between these two methods. (Medium, @benlmsc)

getElementById VS querySelector (simple comparison)

A simple comparison of performance between these two methods. (Medium, @benlmsc)

JSON Stringify Speed Test vs joining array

This benchmark tests whether the speed or JSON.stringify changes with object size

Clamp Math vs Lodash clamp

Testing math min, clamping vs lodash clamping

isarray_vs_instanceof_vs_tostring

No description provided

fetch vs ajax call V2

fetch vs ajax call

lodash groupBy vs lodash keyBy 2

No description provided

parseInt vs Number vs implicit conversion

No description provided

JS: insertBefore vs prepend

No description provided

lodash xor perf v2

Searching for faster solution for _.xor(a, b)

7 properties - style.setProperty vs style.cssText vs style vs Object.assign vs setAttribute

No description provided

lodash xor perf

Searching for faster solution for _.xor(a, b)

Fastest way to find keys in objects

Fastest way to find keys in objects

dataset vs getAttribute speed

No description provided

JavaScript spread operator vs Slice/Splice performance 2

No description provided

ArrayBuffer Copy Benchmark (2)

No description provided

for vs while vs for of vs forEach

No description provided

get all element's attributes

No description provided

Array sort & map vs. map & sort

The best way to map and sort array of arrays

string split vs spread vs array from

No description provided

JavaScript Fastest Array Copy

Testing the results for the fastest approach of shallow copying an array in JavaScript (concat, slice, for loop, while loop, spread operator).

JavaScript Array Copy

Testing the results for the fastest approach of shallow copying an array in JavaScript (concat, slice, for loop, and while loop).

JS Fastest Array Shallow Copy

Testing the results for the fastest approach of shallow copying an array in JavaScript (concat, slice, for loop, and while loop).

parseInt() VS x.toFixed()

Compare javascript native parseInt() function vs toFixed() function

Array: Object.prototype.toString vs instanceof vs Array.isArray

No description provided

NEW BENCHMARK Your Benchmarks