Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
fromCharCode apply vs spread
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.84 Safari/537.36
Browser:
Chrome 99
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
apply
1944735.1 Ops/sec
spread
404722.6 Ops/sec
Script Preparation code:
data = new Uint8Array([239, 191, 189, 239, 191, 189, 239, 191, 189, 239, 191, 189, 239, 191, 189, 239, 191, 189, 239, 191, 189, 239, 191, 189, 239, 191, 189, 32, 47, 32, 84, 104, 101, 32, 66, 101, 103, 117, 105, 108, 101, 100, 32, 40, 49, 57, 55, 49, 41, 32, 66, 68, 82, 105, 112]);
Tests:
apply
let result = String.fromCharCode.apply(0, data);
spread
let result = String.fromCharCode(...data);