Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
Push vs concat vs decon
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/121.0.0.0 Safari/537.36 Edg/121.0.0.0
Browser:
Chrome 121
Operating system:
Windows
Device Platform:
Desktop
Date tested:
2 years ago
Benchmark engine:
Benchmark.js
Index
50.2M/s
Push
50.2M/s
Decon
33.9M/s
Concat
9.0M/s
View exact numbers
Test name
Executions per second
✓
Index
50,240,244 Ops/sec
Push
50,160,440 Ops/sec
Decon
33,878,876 Ops/sec
Concat
8,955,206 Ops/sec
Tests:
Decon
var params = [ "hello", true, 7 ] var other = [ ...params, 'new' ]
Push
var params = [ "hello", true, 7 ]; params.push('new');
Concat
var params = [ "hello", true, 7 ]; params.concat(['new']);
Index
var params = [ "hello", true, 7 ]; params[params.length] = 'new';