Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Which equals operator (== vs ===) is faster?

Is there a performance benefit to replacing == with ===?

Arrays or Objects for Points

No description provided

native test

No description provided

map vs arr

No description provided

Demo benchmark

From https://benchmarkjs.com/

data-attribute: jQuery data vs Zepto data vs getAttribute

No description provided

if vs noop

No description provided

Count string occurrence

http://stackoverflow.com/questions/4009756/how-to-count-string-occurrence-in-string http://stackoverflow.com/questions/881085/count-the-number-of-occurences-of-a-character-in-a-string-in-javascript

classList shim

Optimzing classList shim

blahasdas

blah

Selector Comparisons

Various JS Selector Comparisons

Selectors

Comparing various JS selector speeds

Object Signatures

Unique string for object by value

in vs hasownproperty vs undefined

No description provided

jQuery .first() vs :first vs .filter(:first) vs .eq(0) vs $(.get(0)) vs $([0])

No description provided

string of length N

No description provided

Global matching regex with and without + char

Comparison of performance of /[^a-z0-9]+/gi vs /[^a-z0-9]/gi in replace function, i.e. one vs many matches

Global matching regex with and without + char

Comparison of performance of /[^a-z0-9]+/gi vs /[^a-z0-9]/gi in replace function, i.e. one vs many matches

Global matching regex with and without + char

Comparison of performance of /[^a-z0-9]+/gi vs /[^a-z0-9]/gi in replace function, i.e. one vs many matches

Event listener anonymous function vs named inline function vs external function

This test compares performance of addEventListener(), when it's passed anonymous function, named inline function and function declared beforehand.

Event listener anonymous function vs named inline function vs external function

This test compares performance of addEventListener(), when it's passed anonymous function, named inline function and function declared beforehand.

UUID perf test

No description provided

safdfsda

dfsafdsa

Data vs ID

You know...th ename

Data vs ID

You know...th ename