Benchmark name | When Created |
---|---|
React createElement vs cloneElement | one month ago |
UTF-8 vs UTF-16 WASM String Interface | one month ago |
dataset keys vs attributes.filter
checks which is faster between dataset and filtering attributes |
one month ago |
JS BigInt big number performance v9
Compare Number vs BigInt for big numbers |
one month ago |
array find vs new Set has inside a filter
I created two arrays: one with 100 numbers and another with 10,000 random numbers. Then, i filtered the first array to check for the presence of the number 5 in the second array using two different methods. In the first test case, i used the .find() method, which iterates through the 10,000-number array to locate the number 5 and returns the first matching value. In the second test case, i converted the 10,000-number array into a Set and used the .has() method to check for the presence of the number 5. The goal is to compare both approaches and determine which one is faster and which one use less memory. |
one month ago |
Test direct and destructuring performances | one month ago |
Date constructor inputs (extended by input of pre-existing Date object) | one month ago |
Mul vs Square Root functions
Measure the performance of the Power and Square Root functions. Conclusion: The underlying math logic seems to be the same, regardless of the function used. |
one month ago |
Lodash UniqBy vs. Vanilla alternative | one month ago |
Map copying | one month ago |
Map.values().toArray() vs Array.from(Map.values()) vs [...Map.values()] | one month ago |
Array.filter vs Array.splice | one month ago |
querySelector vs getElementsByClassName with destructuring assignment vs getElementsByClassName get first element | one month ago |
querySelector vs getElementsByClassName with destructuring assignment | one month ago |
Array.push + Array.reverse vs Array.unshift | one month ago |
DecodeURI Ops | one month ago |
querySelector vs querySelectorAll vs getElementsByClassName when trying to select by group of similar ID elements | one month ago |
Boolean vs !! test | one month ago |
String vs. Template Literal with var 2 | one month ago |
String vs. Template Literal with var | one month ago |
JavaScript spread operator vs Object.assign performance 123456 | one month ago |
array.splice vs for loop with 2 arrays | one month ago |
Array.at vs index (last element)
Measures performance between using arr.at(-1) to access the last element in the array and arr[arr.length - 1] |
one month ago |
Logs - RegEx.test vs. String.includes vs. String.match | one month ago |
Set.difference vs Filter | one month ago |