Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

lodash uniq vs set with strings

No description provided

Number vs Unary vs parseFloat vs parseInt

No description provided

Object assign vs direct assignment by iterating keys without Object.keys

Should you be saving your fields to an object with Object.keys(toSave).forEach(k => ...) or by for(var i in object) { toSave[i] } or by Object.assign(destination, toSave);

Regex vs String comparison

No description provided

Math.min vs if/else vs ternary operator test 3

Quickest operation to return smaller of 2 numbers

Math.min vs if/else vs ternary operator test 2

Quickest operation to return smaller of 2 numbers

Array() vs Array.from() fill

Testing the difference between creating filled arrays.

Array() vs new Array() fill

Testing the difference between creating filled arrays.

isNumber vs unary cast

No description provided

Cached querySelector single

Testing if caching querySelector makes a diference

JS loops comparison

No description provided

value comparison vs. JSON.stringify

No description provided

ES6 Class vs Prototype vs Object Literal v3

Test the speed and memory usage using 3 different techniques for constructing class objects.

Array 2000 spread vs concat

No description provided

RegEx.test vs. String.includes vs. String.match vs String.replace vs String.replace classic

No description provided

RegEx.test vs. String.includes vs. String.match vs String.replace

No description provided

Compare typeof vs null check 2

No description provided

set.has vs. array.includes vs array.indexOf on big data

No description provided

endsWith vs Regex aspx ending

No description provided

endsWith vs Regex aspx

No description provided

Set has vs object key 2

performance comparison of ways to find if an array contains a value

Array Intersection vs. Set Intersection vs. Lodash part 6

No description provided

String() vs "as string"

Typescript check of 'String' vs 'as string'

bitwise vs string compare

No description provided

some vs for..of

No description provided