Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Array.push( spread ) vs assign Array.concat()

No description provided

Javascript if condition < 0

No description provided

str.prototype.repeat() vs for loop

benchmark performance between str.prototype.repeat() and for loop

lodash.round VS toFixed() VS toFixed() and parseFloat vs L.formmatNum

Compare round lodash function vs javascript native toFixed() function

JS Filter Test large array

No description provided

for vs reduce

No description provided

Object.entries VS Object.keys VS Object.keys with extra array VS Object.entries without array vs. for...in

No description provided

slice vs substr vs substring to truncate string

Compares slice, substr and substring to each other when the start index is 0

RegExp constructor vs literal vs premade, constructing in function, inline the test 2

Testing performance when using a new RegExp object vs a literal regex

add class methods

No description provided

forEach variants

No description provided

Map (Immer vs Native)

No description provided

Array push vs spread operator (including front)

Compare the new ES6 spread operator with the traditional push method

Array push vs spread operator

Compare the new ES6 spread operator with the traditional push method

createElement vs createContextualFragment

No description provided

WebGL math library comparison

Originally from jsperf webgl-math-library-comparisson A comparisson of several math / vector libraries to be used against webgl. The test is intended to help select the fastest library to use for webgl projects. Libraries Tested: Closure / goog.math, gl-matrix, N3D, Sylvester, vanilla js These results show that the allocation of small temporary objects is practically free in modern browsers. Arrays are still much slower though. With this in mind, an ideal modern webgl math library should use immutable objects for each function call and then have a final conversion to Float32Array function only used when assigning the result to WebGL since allocating ArrayBuffers is also extremely slow.

img selector

No description provided

Spread vs Object.assign vs Object.keys with forEach

No description provided

Spread vs Object.assign vs Object.keys

No description provided

Spread vs Object.assign vs Object.keys and reduce

No description provided

Spread vs Object.assign vs Not merging

No description provided

reduce vs assigning with a forEach

No description provided

Substr vs slice vs replace

No description provided

Array Exists vs If...else

No description provided

Performance Test: substring + indexOf x split + splice x split + [0] x regex multiple

No description provided