Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Set vs Object vs Map (has/in) vs array

Compare the speed to retrieve a value from three data structures that can be used for boolean referencing; i.e. for mapping enabled settings.

Functional Vs Imperative 10 elems

No description provided

Functional Vs Imperative

No description provided

Set vs Object vs Map (has/in)

Compare the speed to retrieve a value from three data structures that can be used for boolean referencing; i.e. for mapping enabled settings.

parseInt vs Number BigInts

No description provided

test DomParser vs Regex vs IndexIf

No description provided

Lodash Intersection with Arrays vs. native with sets vs. native filter with arrays

No description provided

URL parsing and matching

No description provided

Array.filter vs. raw for-loop vs. for..of vs. Array.reduce vs. generator spread

Changes in this fork include (but might not be limited to): - Complete refactoring - Fixed memory leak - Even if you didn't run out of memory this still heavily affected performance, rendering the results basically useless. - Attempted to make test cases less likely to be optimized away (larger array, randomized values) - Changed for..in to for..of - One shouldn't use for..in for array access. It doesn't behave like other loops in that: 1. It returns all enumerable properties in the entire prototype chain. Usually not a problem, but if you're using inheritance it might. 2. It doesn't visit empty slots. So if you created a sized array (i.e. new Array(123)) and looped over it with for..in it would visit exactly 0 slots. 3. It returns indexes as strings. Could cause subtle bugs since it would work with abstract comparison operators more or less as though it was a number, but not so much with, for instance, the + operator. - Added Array.reduce test - Added generator test

Classnames vs CLSX vs Alternatives vs custom

Compare CLSX vs Classnames vs an own implementation of creating a template string

Array.prototype.concat vs spread operator vs flat v2

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

clamp vs bitClamp

No description provided

string to ~~ vs parseInt vs Number vs parseFloat

No description provided

set.has vs. array.includes vs. map.has

No description provided

native find vs for..in

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

Setting on Proxy vs Object

No description provided

Merging two arrays

No description provided

Object key access vs array find 50 els

Test speed of object access by key vs array find to find object

Array.apply vs .from vs map vs loop

Compare the performance of various array creation methods.

es6 vs prototype class

No description provided

find vs findIndex (Array prototype methods) 123123

Measuring which is faster

filter array vs delete object property

filter array vs delete object property

_.pickBy vs native Object.entries + filter

Comparing performance of: _.pickBy() vs Object.entries().filter()

RegEx.test (with inline regex) vs. String.includes vs. String.match

No description provided

replaceChildren vs removechild

test

NEW BENCHMARK Your Benchmarks