Latest Benchmarks

Browse the latest JavaScript performance benchmarks created by the community.

Recursion vs Iteration (with tail recursion)2

No description provided

map vs object - key access 4

No description provided

map vs object - key access 2

No description provided

Math.min vs if/else vs ternary operator for Int

Quickest operation to return smaller of 2 numbers

date-fns vs momentjs date formatting

It's not a deep validation; I'm just comparing ONE function that those two libraries have in common.

luxon-v-Intl-v-datefns format, luxon-v-Date-v-datefns native parse

No description provided

luxon-v-Intl format, luxon-v-Date native parse

No description provided

Node closest vs node contains

No description provided

Ramda toString vs JSON.stringify

No description provided

Dompurify 2.3.3 vs sanitize-html 1.27.5 vs Js-XSS Latest (Test #1)

No description provided

(instanceof Function) vs (typeof function)

No description provided

String split using regex vs string v3

No description provided

String split using regex vs string v2

No description provided

Modulo Alternatives

No description provided

Markdown Parser Performance Comparison

A performance comparison of Javascript Markdown parsers.

Object.keys().includes() vs hasOwnProperty

No description provided

spread vs push large

large

svg dangerouslySetInnerHTML vs use vs inline

No description provided

Object.defineProperty vs Object.assign vs. Direct property assignment

No description provided

Object.hasOwnProperty vs Object in vs Object[] vs Array.indexOf vs Array.find vs Map.has

No description provided

Get text content from a HTML string [5]

Check different ways of getting text content from a HTML string. Tests with unsafe and safe ways.

createElement vs innerHTML (3000)

createElement vs innerHTML (3000)

reduce spread operator vs flat

Compare the new ES6 spread operator with the traditional concat() method

Lodash flatten vs nativate flat (depth 1)

No description provided

object.assign vs new class extends

Performance difference of creating a class that extends P and creating a new instance of it vs doing object.assign(new P(), ...)

NEW BENCHMARK Your Benchmarks