Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
Immutable vs Native
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36
Browser:
Chrome 137
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
one year ago
Benchmark engine:
Benchmark.js
immutable copy
19.0M/s
native copy
1.9M/s
View exact numbers
Test name
Executions per second
✓
immutable copy
18,993,320 Ops/sec
native copy
1,931,869 Ops/sec
HTML Preparation code:
<script src="https://cdnjs.cloudflare.com/ajax/libs/immutable/3.8.1/immutable.min.js"></script>
Script Preparation code:
var native = []; for (var i=0; i < 1000; i++) { native.push(i); } var imm = Immutable.List(native);
Tests:
native copy
var b = native.slice().push('again');
immutable copy
var b = imm.push('again');