Benchmark name When Created
moment iostring 4 days ago
Testing 1 2 3 4 5 4 days ago
Lodash isString fork 4 days ago
_isEqual vs. .every() 4 days ago
string construct 4 days ago
parseInt benchmark v2 4 days ago
parseInt benchmark 4 days ago
JavaScript spread operator vs Object.assign performance | lates-2 4 days ago
JavaScript spread operator vs Object.assign performance | lates 4 days ago
Replace string methods, .replace(), replaceAll(), and split+join + 4 days ago
Replace string methods, .replace(), replaceAll(), and split+join 4 days ago
replace vs substring vs slice from beginning (+ brackets, substr, compiled vs inline regex and replace from var)

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

4 days ago
JSON.stringify vs structuredClone more

JSON.stringify vs structuredClone

4 days ago
for-in vs object.keys in loop 4 days ago
String concatenation vs array join v6 5 days ago
6546878965987987987984981651324684654984658489465798654984659856416514698584

while vs lastIndexOf

5 days ago
5165168465468465216546516546513657354365435218561549845

while vs lastIndexOf

5 days ago
dataset vs getAttribute() vs jQuery.data() vs jQuery.attr() 5 days ago
Array of Objects to Object with keys Object.fromEntries v Object.assign

Convert an array of objects to an object whose keys are derrived from a property on each object in array.

5 days ago
JavaScript function Destructuring assignment vs function's out value 5 days ago
eval vs new Function (including parse) 5 days ago
boolean vs math length 5 days ago
condition 5 days ago
OffsetScreenCanvas.measureText VS. Canvas.measureText 5 days ago
parseFloat for me 5 days ago

 New benchmark Your benchmarks