Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
stringify-parse vs structuredClone
(version: 0)
Comparing performance of:
stringify-parse vs structuredClone
Created:
2 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
var obj = { entities: { threads: [ { publishStartDate: '2020-03-19T07:12:19.699Z', properties: { pageType: 'article', attributions: { profiles: [ { id: 'profile-id-1', age: 24, gender: 'male', type: 'asdf_asdf', geo: 'geo', description: 'description', givenName: 'Name', familyName: 'Lastname', fullName: 'Name Lastname', familyNameGivenName: 'Lastname, Name', nameOrder: 'western', socialMedia: { instagram: 'instagram', }, avatar: { squarish: { id: '44b3d4df-59a3-4ae8-837e-ac9ad1190d54', url: 'some.url', aspectRatio: 1.0, }, landscape: { id: '44b3d4df-59a3-4ae8-837e-ac9ad1190d54', url: 'some.url', aspectRatio: 1.7, }, portrait: { id: '44b3d4df-59a3-4ae8-837e-ac9ad1190d54', url: 'some.url', aspectRatio: 0.5, }, }, title: 'Whatever', }, { id: 'profile-id-1', age: 24, gender: 'male', type: 'asdf_asdf', geo: 'geo', description: 'description', givenName: 'Name', familyName: 'Lastname', fullName: 'Name Lastname', familyNameGivenName: 'Lastname, Name', nameOrder: 'western', socialMedia: { instagram: 'instagram', }, avatar: { squarish: { id: '44b3d4df-59a3-4ae8-837e-ac9ad1190d54', url: 'some.url', aspectRatio: 1.0, }, landscape: { id: '44b3d4df-59a3-4ae8-837e-ac9ad1190d54', url: 'some.url', aspectRatio: 1.7, }, portrait: { id: '44b3d4df-59a3-4ae8-837e-ac9ad1190d54', url: 'some.url', aspectRatio: 0.5, }, }, title: 'Whatever', }, { id: 'profile-id-1', age: 24, gender: 'male', type: 'asdf_asdf', geo: 'geo', description: 'description', givenName: 'Name', familyName: 'Lastname', fullName: 'Name Lastname', familyNameGivenName: 'Lastname, Name', nameOrder: 'western', socialMedia: { instagram: 'instagram', }, avatar: { squarish: { id: '44b3d4df-59a3-4ae8-837e-ac9ad1190d54', url: 'some.url', aspectRatio: 1.0, }, landscape: { id: '44b3d4df-59a3-4ae8-837e-ac9ad1190d54', url: 'some.url', aspectRatio: 1.7, }, portrait: { id: '44b3d4df-59a3-4ae8-837e-ac9ad1190d54', url: 'some.url', aspectRatio: 0.5, }, }, title: 'Whatever', }, ], roles: { '978c1a33-a6c3-4174-9929-3669a34dcf6a': ['profile-id-1', 'profile-id-2'], '1557cec2-d8c5-4e54-a980-a1e5f2883ee7': ['profile-id-2'], '176e2a86-4ae7-4b22-9c8c-632296dbb991': [ 'profile-that-is-organization-id-1', 'profile-id-2', ], }, roleTitles: { '978c1a33-a6c3-4174-9929-3669a34dcf6a': 'Some', '1557cec2-d8c5-4e54-a980-a1e5f2883ee7': 'People', '176e2a86-4ae7-4b22-9c8c-632296dbb991': 'Here', }, } }, }, ], layout: { '8351eff2-d5ed-468d-a109-91f748629803': { id: '8351eff2-d5ed-468d-a109-91f748629803', creationDate: '2023-07-19T10:41:29.503Z', createdBy: 'author', modificationDate: '2023-07-19T10:41:29.503Z', items: [], transforms: [], resourceType: 'content/layout', mode: 'layout', }, }, }, };
Tests:
stringify-parse
JSON.parse(JSON.stringify(obj));
structuredClone
structuredClone(obj);
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
stringify-parse
structuredClone
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Autogenerated LLM Summary
(model
llama3.2:3b
, generated one year ago):
It seems like you have provided a lot of text data that doesn't directly ask for an answer, but rather seems to be some kind of test case or benchmarking output. However, I'll try to identify the actual question being asked based on the data provided. It appears that the data might be related to a JSON object and its performance under different serialization methods (JSON.parse(JSON.stringify(obj)), structuredClone(obj)). The "Html Preparation Code" field seems to be empty, which is unusual. There are also some benchmark results listed, which include information about browsers, devices, operating systems, executions per second, and test names. These seem to be the results of some kind of performance testing. If I had to guess, the question being asked might be related to identifying issues with the JSON object or its serialization methods based on the benchmark results. However, without more context or information about what exactly is being asked, it's difficult for me to provide a specific answer. Can you please clarify or provide more details about the actual question?
Related benchmarks:
Lodash cloneDeep vs structuredClone vs recursiveDeepCopy vs JSON clone more complex object
JSON.stringify vs structuredClone with large Objects 2
Lodash cloneDeep vs structuredClone vs JSON Parse large set 2
Lodash cloneDeep vs structuredClone with large object
Lodash cloneDeep vs structuredClone vs JSON.stringify (big object)
Comments
Confirm delete:
Do you really want to delete benchmark?