Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Array() vs new Array()

No description provided

Switch vs. Object literal

No description provided

Testing leftpad just for lulz

No description provided

String casting test

Test which string casting method is fastest

RegEx.test vs. String.includes vs. String.search (All case insensitive)

No description provided

bignumber.js vs native benchmark: string to number

- https://github.com/iriscouch/bigdecimal.js/tree/v0.6.1 - https://github.com/MikeMcl/bignumber.js/tree/v9.0.0 - https://github.com/MikeMcl/big.js/tree/v5.2.2 - https://github.com/MikeMcl/decimal.js/tree/v10.2.0 - https://github.com/infusion/Fraction.js/tree/v4.0.12

bignumber.js vs native benchmark: compareTo

- https://github.com/iriscouch/bigdecimal.js/tree/v0.6.1 - https://github.com/MikeMcl/bignumber.js/tree/v9.0.0 - https://github.com/MikeMcl/big.js/tree/v5.2.2 - https://github.com/MikeMcl/decimal.js/tree/v10.2.0 - https://github.com/infusion/Fraction.js/tree/v4.0.12

bignumber library vs native benchmark: compareTo

- https://github.com/iriscouch/bigdecimal.js/tree/v0.6.1 - https://github.com/MikeMcl/bignumber.js/tree/v9.0.0 - https://github.com/MikeMcl/big.js/tree/v5.2.2 - https://github.com/MikeMcl/decimal.js/tree/v10.2.0 - https://github.com/infusion/Fraction.js/tree/v4.0.12

cameronaziz - uniqueId-1

No description provided

Lodash startCase vs Native - caziz

No description provided

.map.includes vs .find with shuffle

No description provided

Regex whitespace vs manual checking

No description provided

spread vs concat vs unshift vs slice.unshift

spread vs concat vs unshift vs slice.unshift

.map.includes vs .filter with shuffle

No description provided

RegExp unnecessary matches implications

Check if having unnecessary matches in a regular expression has some performance implication

Console.log string vs object

No description provided

Array.from() vs new Array(), filling with index

Testing the difference between creating arrays with different values in each position.

Round Comparison

No description provided

_.includes vs includes() 2

No description provided

includes vs has test

No description provided

filter-map vs reduce 100k

modified version of `map-filter vs reduce` that switches the order of operations

Array filter vs Lodash intersection 2

No description provided

Array filter vs Lodash intersection 1

No description provided

.map.includes vs .filter

No description provided

Object.values vs spread operator (...) to clone arrays.

No description provided