Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Populating a Set

No description provided

Set() has vs add

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

flatMap vs reduce (group count) (v2)

No description provided

flatMap vs reduce (group count)

No description provided

concat vs spread vs push

No description provided

Bench flat map vs spread reduce (small array)

No description provided

intersection lodash

No description provided

concat vs unshift vs spread (huge arrays)

No description provided

Lodash vs Set Intersection vs includes vs indexOf (not ordered list)

No description provided

Lodash vs Set Intersection vs includes vs indexOf

No description provided

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.

set.has vs. array.includes but include converting as well

No description provided

radix sort each base

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

dose Lodash _.union vs native Set()

No description provided

dose Array Intersection vs. Set Intersection vs. Lodash part 3

No description provided

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

parseInt with binary numbers vs native numbers

No description provided

Lodash Chain vs Native vs Lodash && vs Native && vs Flow

No description provided

For let vs var vs const

No description provided

Initializing array with map function

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

parseInt vs Number addition 2

No description provided

charCode vs ===

No description provided

charAt vs String.fromCharCode

No description provided

Regex vs split/join 22345654321

No description provided

Concat vs push(...) for large arrays (100000 up to 5000000)

Comparing the various ways to append to a large array