Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Ultimate DOM Manipulation Benchmark (Element.setAttribute)

No description provided

TextEncoder vs String hash v2

Test TextEncoder encoding vs simply encoding with a string

for loop vs every

iterating over an array to test whether every element satisfies a condition the for loop uses "inlining" (the condition is right there, without an extra function call) the call to every uses the predefined lambda ("cond")

JQuery: find with selected selector vs filter selected selector

find the best solution for optimize getting selected option

JQuery: compare approaches for get of children

Find the best approach for getting options

native map vs lodash

No description provided

Native JS: concatenate string with + vs template literals vs String.concat

find best solution for concatenate 4 strings

all variety of loops in js

No description provided

Array loop vs foreach vs map vs filter vs reduce

No description provided

math pow vs bit shifting vs **

No description provided

math pow vs bit shifting

No description provided

Replace vs Match

Replace vs Match

getElementById vs querySelector 2

No description provided

uniq across _, R, Set

No description provided

Lodash isEmpty vs native .isArray + length

No description provided

Regex /i vs .indexOf with tolowerCase

Testing some things

Lodash cloneDeep vs clone vs spread

No description provided

JQuery: text vs html

compare speed for adding text to element

querySelectorAll: id vs tag vs class

test which selector is better for find element

Math.pow(x,0.25) vs Math.sqrt(sqrt(x))

No description provided

POJO hash table vs Map

Benchmark of various iteration and diffing strategies over a plain JavaScript-object-as-hash-table vs the ES6 Map data structure

JQuery: parseHTML vs without parse

Test speed for create of JQuery object

JQuery: find vs id selector

Test which solution find quicker element

Map vs Foreach mutate array

This test will run map, vs foreach on a larger array and make sure you get a modified array

map vs forEach Chris v2b

performance test map vs forEach

NEW BENCHMARK Your Benchmarks