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/151.0.0.0 Safari/537.36
Browser:
Chrome 151
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one month ago
Benchmark engine:
Benchmark.js
structured clone
863/s
json stringify
753/s
lodash clone
309/s
View exact numbers
Test name
Executions per second
✓
structured clone
863 Ops/sec
json stringify
753 Ops/sec
lodash clone
309 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);