Benchmark name When Created
single for loop vs multiple for loops for iterating over arrays 4 months ago
slice vs substring for keyword slicing 4 months ago
test forin vs keys+foreach+for 4 months ago
test forin vs keys+foreach 4 months ago
Assigning new variable 4 months ago
Array.from vs map 1 4 months ago
Split vs Regex json formatting 4 months ago
Split vs Regex json strings 4 months ago
Populating a Set 4 months ago
Set() has vs add

To figure out if it's even worth checking via .has or just spamming .add repeatedly.

4 months ago
flatMap vs reduce (group count) (v2) 4 months ago
flatMap vs reduce (group count) 4 months ago
concat vs spread vs push 4 months ago
Bench flat map vs spread reduce (small array) 4 months ago
intersection lodash 4 months ago
concat vs unshift vs spread (huge arrays) 4 months ago
Lodash vs Set Intersection vs includes vs indexOf (not ordered list) 4 months ago
Lodash vs Set Intersection vs includes vs indexOf 4 months ago
JS switch vs if/else if 1 condition

Benchmark of the speed difference between using multiple IF statements and an open-ended IF/ELSE IF.

4 months ago
set.has vs. array.includes but include converting as well 4 months ago
radix sort each base

radix sort base with binary number, octal number, decimal number, hexadecimal, quater of int, half of int

4 months ago
dose Lodash _.union vs native Set() 4 months ago
dose Array Intersection vs. Set Intersection vs. Lodash part 3 4 months ago
Initializing array with map function - JS version of Python list comprehension

worth to note that the maximum callstack size is exceeded for the first test case (spread operator) with n = 1 million

4 months ago
parseInt with binary numbers vs native numbers 4 months ago

 Create Your benchmarks