Benchmark name | When Created |
---|---|
str.match vs str.Split33
Test String.match with regex against String.split with string. We are splitting a string at the spaces. |
one year ago |
Reduce vs Loop (partition) | one year ago |
char index vs charAt() vs slice() vs startsWith() vs RegExp Fixed
Compare methods for testing string's beggining character. |
one year ago |
loops testing 222222
Compare loop performance |
one year ago |
Constructed/Evaluated Function Test
You can create functions on the fly in Javascript through the new Function constructor (as an alternative to eval()). Are there any performance issues with that? Find out! |
one year ago |
Reduce vs Assign | one year ago |
Javascript Sorting Algorithms (weird sort)
Port from jsperf(https://jsperf.com/sorting-algorithms/58) |
one year ago |
closure vs classes js | one year ago |
Some vs. Filter vs. findIndex with object | one year ago |
bench hubble .startsWith() vs .test() vs .match() vs .indexOf() | one year ago |
Comparision filter in js using different methods_v2 | one year ago |
Testing filter vs foreach | one year ago |
firstChild vs lastChild | one year ago |
Pop vs length -1 | one year ago |
Object.keys VS JSON.stringify() for empty objects and arrays
You don't need to make add for loops in your test scenarios, the benchmark does it itself. |
one year ago |
Array.find vs Array.filter on large dataset | one year ago |
JavaScript nested namespace vs simple namespace | one year ago |
guard asdf | one year ago |
Object.entries VS Object.keys VS Object.keys with extra array VS Object.entries without arraya s.d.. | one year ago |
Swap element "in-place" with replaceWith() vs .outerHTML
Swap an DOM element with replaceWith() and compare with the .outerHTML method of replacing its content instead. replaceWith() - Pretty one-liner - Breaks element attributes, inline style and scrollHeight/scrollWidth (fully re-render element) .outerHTML - Keeps attributes, inline style and scrollHeight/scrollWidth (partially re-render element) - Breaks previous element references, "hacky" looking and sometimes perceptible (element may flash for a split second) |
one year ago |
loops testing
Compare loop performance |
one year ago |
insertAdjacentHTML + querySelector vs append | one year ago |
JavaScript spread operator vs Object.assign performance without mutating | one year ago |
Lodash.isEqual vs JSON.stringify Equality Comparison for 1000 length array | one year ago |
JSON.stringify + JSON.parse vs structuredClone vs fast_deep_clone (recursive) | one year ago |