Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

new Array from vs slice vs push vs index vs spread

No description provided

Canvas test

test

Lodash vs vanila 3.3

No description provided

Lodash vs vanila 3.2

No description provided

test power

t

Lodash vs vanila 2

No description provided

Array vs Linked List123451

Manage Todos in a list - compare performance of Array vs Linked List.

Array vs Linked List12345

Manage Todos in a list - compare performance of Array vs Linked List.

slice vs substr vs substring vs replace

Compares slice, substr and substring to each other when there is only a start index

slice vs substr vs substring (with no end index) 22

Compares slice, substr and substring to each other when there is only a start index

3xif||regexp2

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...

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