Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
JSON.stringify + JSON.parse vs structuredClone AJP
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0
Browser:
Firefox 115
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
JSON.stringify + JSON.parse Sep
648.0 Ops/sec
structuredClone Sep
55289.8 Ops/sec
Script Preparation code:
var obj =[] var abc = { "name": "oblique FGRE", "duration": 15, "id": "l1cdds16-2496-4116-9f14-626860ba5a4z", "taskProtocolId": "protocol://GE@local/adult_abdomen_AbdomenAdditionalSequences_20160410115453425_5/session.xml:3D Calibration BH and FB:3", "taskProtocolResource": "protocol://GE@local/adult_abdomen_AbdomenAdditionalSequences_20160410115453425_5/session.xml", "state": "READY_TO_EXECUTE", "subState": "", "taskType": "LxScanningTask", "movable": true, "operations": { "clinicalOperations": [ { "operationType": "Execution", "name": "SCAN", "allowed": true }, { "operationType": "Execution", "name": "MANUAL_PRESCAN", "allowed": true }, { "operationType": "Execution", "name": "AUTO_PRESCAN", "allowed": true }, { "name": "CONFIRM", "allowed": false, "operationType": "Prescription" }, { "operationType": "prescription", "name": "GET_PARAMETERS", "allowed": true, "applicable": null, "message": null, "url": { "serviceKey": "task-v1", "requestMethod": "GET", "relativePath": "/tasks/l1cdds16-2496-4116-9f14-626860ba5a4z/parameters", "absolutePath": null } }, { "operationType": "Prescription", "name": "PRESCRIBE", "allowed": true, "applicable": true, "message": null, "url": { "serviceKey": "task-v1", "requestMethod": "PATCH", "relativePath": "/tasks/l1cdds16-2496-4116-9f14-626860ba5a4z", "absolutePath": null } }, { "operationType": "Prescription", "name": "RENAME", "allowed": true, "applicable": true, "message": null, "url": { "serviceKey": "task-v1", "requestMethod": "PUT", "relativePath": "/tasks/l1cdds16-2496-4116-9f14-626860ba5a4z/name", "absolutePath": null } } ] }, "context": { "examUuid": "df10b24a-e044-410b-954c-217cc23051ef" } }; for(i=0; i<256; i++){ obj.push(abc) }
Tests:
JSON.stringify + JSON.parse Sep
JSON.parse(JSON.stringify(obj));
structuredClone Sep
structuredClone(obj);