Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
spread vs push 1232132131
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 YaBrowser/25.8.0.0 Safari/537.36
Browser:
Yandex Browser 25
Operating system:
Linux
Device Platform:
Desktop
Date tested:
7 months ago
Test name
Executions per second
push
59808384.0 Ops/sec
spread
38419740.0 Ops/sec
Tests:
push
var params = [ "hello", true, 7 ]; var testObj = {a: {b: {c : 'd'}}}; var other = params.push(testObj);
spread
var params = [ "hello", true, 7 ]; var testObj = {a: {b: {c : 'd'}}}; var other = [...params, testObj];