Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
clones
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/152.0.0.0 Safari/537.36 OPR/136.0.0.0 (Edition developer)
Browser:
Opera 136
Operating system:
Windows
Device Platform:
Desktop
Date tested:
29 days ago
Benchmark engine:
Benchmark.js
structured clone
502/s
json stringify
365/s
lodash clone
140/s
View exact numbers
Test name
Executions per second
✓
structured clone
502 Ops/sec
json stringify
365 Ops/sec
lodash clone
140 Ops/sec
HTML Preparation code:
<!--your preparation HTML code goes here--> <script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.21/lodash.min.js'></script>
Script Preparation code:
const array = []; for (let i = 0; i < 1e5; i++) { array.push(i); }
Tests:
json stringify
const copy = JSON.parse(JSON.stringify(array));
structured clone
const copy = structuredClone(array);
lodash clone
const clone = _.cloneDeep(array);