Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
lodash clone vs structured clone
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
729/s
lodash clone
304/s
View exact numbers
Test name
Executions per second
✓
structured clone
729 Ops/sec
lodash clone
304 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:
/*your preparation JavaScript code goes here To execute async code during the script preparation, wrap it as function globalMeasureThatScriptPrepareFunction, example:*/ async function globalMeasureThatScriptPrepareFunction() { // This function is optional, feel free to remove it. // await someThing(); } const array = []; for (let i = 0; i < 1e5; i++) { array.push(i); }
Tests:
lodash clone
/*When writing async/deferred tests, use `deferred.resolve()` to mark test as done*/ const result = _.cloneDeep(array);
structured clone
const result = structuredClone(array);