Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
JS test gareko hai 2
asdasd
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:122.0) Gecko/20100101 Firefox/122.0
Browser:
Firefox 122
Operating system:
Windows
Device Platform:
Desktop
Date tested:
2 years ago
Test name
Executions per second
Array.includes
1850041.8 Ops/sec
OR
2567291.5 Ops/sec
Script Preparation code:
var range = [...Array(5)].map((_, i) => i); var array = ['a', 'b', 'c', 'd', 'e', 'f']; var value = 'g';
Tests:
Array.includes
const results = []; for (const i in range) { results.push(array.includes(value)); }
OR
const results = []; for (const i in range) { results.push('a' === value || 'b' === value || 'c' === value || 'd' === value || 'e' === value || 'f' === value); }