Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
structuredClone() vs MobX toJS()
(version: 1)
Comparing performance of:
MobX toJS vs Native structuredClone
Created:
one year ago
by:
Registered User
Jump to the latest result
HTML Preparation code:
<script src='https://unpkg.com/mobx/dist/mobx.umd.production.min.js'></script>
Script Preparation code:
var mobx = reuqire('mobx'); var MyObject = { description: 'Creates a deep copy of source, which should be an object or an array.', myNumber: 123456789, myBoolean: true, jayson: { stringify: 'JSON.stringify() method converts a JavaScript value to a JSON string....', parse: 'JSON.parse() method parses a JSON string...' } }; var myCopy = null;
Tests:
MobX toJS
myCopy = mobx.toJS(MyObject)
Native structuredClone
myCopy = structuredClone(MyObject);
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
MobX toJS
Native structuredClone
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
10 days ago
)
User agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 YaBrowser/25.6.0.0 Safari/537.36
Browser/OS:
Yandex Browser 25 on Linux
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
MobX toJS
7168772.0 Ops/sec
Native structuredClone
995038.1 Ops/sec
Comments
Confirm delete:
Do you really want to delete benchmark?