Benchmark name | When Created |
---|---|
className vs classList for a new element | one year ago |
test array vs map lookup 2
asd |
one year ago |
test array vs map lookup | one year ago |
Array.find vs. Map.getdfsxcz
Test the performance of Array.find vs. Map.get, with various array sizes, and with/without conversion from array to map |
one year ago |
Array.find vs. Map.getss
Test the performance of Array.find vs. Map.get, with various array sizes, and with/without conversion from array to map |
one year ago |
from vs stat1
Testing the difference between creating filled arrays. |
one year ago |
from vs stat
Testing the difference between creating filled arrays. |
one year ago |
Custom Benchmark 777 | one year ago |
find vs some for objects
test performance of find versus some |
one year ago |
Lodash.js vs Native3 | one year ago |
Lodash.js vs Native1 | one year ago |
toFixed vs toPrecision vs Math.round() vs bitwise, also trunc, floor
Compares built in and bitwise operators. Specifically, toFixed(), toPrecision(), and Math.round(), and then bit shifting >> 0. In some cases, to places, so *100 and /100. Also tested floor() and trunc() versus the bit mask of |0 (bitwise or). The bitwise tests that are "signed" have the needed ternary statement, whereas the "UNsigned" versions do not. |
one year ago |
replaceAll vs replace 2
includes vs regexp |
one year ago |
Fast deep equal vs strigify | one year ago |
Filter vs. set | one year ago |
pop() vs array.length -= 1 | one year ago |
id vs getAttribute vs map | one year ago |
str.match vs str.Split and for each (regex g flag) | one year ago |
str.match vs str.Split and for each 2 | one year ago |
str.match vs str.Split and for each
Test String.match with regex against String.split with string. We are splitting a string at the spaces. |
one year ago |
Set vs strict equality | one year ago |
arr.find vs arr[arr.findIndex] (Array prototype methods)
Measuring which is faster |
one year ago |
Array slice vs for loop (set by index in new Array) | one year ago |
Array slice vs for loop (set by index) | one year ago |
hypot vs. sqrt
Math.hypot vs Math.sqrt |
one year ago |