Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

3xif||regexp

Test the performance of replace() vs substring() vs slice() when replacing a char at the beginning of a (in this case uri query-)string that may or may not be there. Added the combined brackets[ ] + substr() method, since it's always the first char we wan't to pop off. Inspired by https://jsperf.com/replace-or-substr. Note: could not get 'let' and 'const' to work. Well, too bad...

replace vs substring vs slice from beginning (+ brackets, substr, compiled vs inline regex) rulez

Test the performance of replace() vs substring() vs slice() when replacing a char at the beginning of a (in this case uri query-)string that may or may not be there. Added the combined brackets[ ] + substr() method, since it's always the first char we wan't to pop off. Inspired by https://jsperf.com/replace-or-substr. Note: could not get 'let' and 'const' to work. Well, too bad...

Creation time smaller function pointing to prototype methods VS one larger all in one funtion

time consumed creating a smaller function vs creating a larger function

prototype methods vs defined function

Testing performance: multiple prototype methods chained after one another that invoke a function from a external source (like fs.readDir or fs.stat, but in this case onTodo1 and onTodo2) - VS - one prototype method that creates a new function in the scope of that one method every time the method is called.

IndexOf vs Includes vs _.includes for number array

No description provided

Typeof x === 'undefined' vs x === undefined (test without syntax error)

No description provided

Compare of different Canvas Context2D properties RW

Compare of different Canvas Context2D properties RW

Test speed of undefined

Test speed of !== undefined vs. only the variable name.

Comparing Regex To Split

No description provided

Lodash.js vs Nativejdjdjdjd

No description provided

Lodash set with clonedeep vs set FP

Difference between a set where we do a cloneDeep first and a set from FP. This is useful when writing Redux reducers.

function vs class 2

No description provided

function vs class

No description provided

testtestset

testst

testt3tt3

test3t3

Spread vc push

No description provided

epoch milliseconds to ISO string, precalculated numbers 3

A function that converts an epoch time into an ISO string

epoch milliseconds to ISO string, precalculated numbers 2

A function that converts an epoch time into an ISO string

Lodash.get vs Property dot notation (Nested)

No description provided

custom diff VS sort join

No description provided

Sum vs Reduce comparision

No description provided

epoch milliseconds to ISO string, precalculated numbers

A function that converts an epoch time into an ISO string

JS removeAttribute

No description provided

Delete vs destructure vs reduce for objects

Measure the performance of delete versus removing a prop from an object

Access Object, Map, Array, Set with n items #2

No description provided