Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
slice() vs slice(0)
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:147.0) Gecko/20100101 Firefox/147.0
Browser:
Firefox 147
Operating system:
Mac OS X 10.15
Device Platform:
Desktop
Date tested:
2 months ago
Test name
Executions per second
slice()
266150.9 Ops/sec
slice(0)
335069.7 Ops/sec
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
const ARRAY = Array.from({ length: 10_000 }, (_, i) => i)
Tests:
slice()
ARRAY.slice()
slice(0)
ARRAY.slice(0)