Engineering / Open resources
Which clone is faster on this dataset?
A reproducible experiment comparing two strategies without treating one measurement as a universal rule.
Download benchmark-json.mjs
Hypothesis and test
Object size may change the relative cost of each strategy. Run the script, compare medians by size and repeat on another runtime. Consult the full benchmark for context and raw data; do not choose an API by timing alone if it cannot preserve the types you need.
Cloning JSON data
JSON.parse/stringify and structuredClone on synthetic data: reproducible script, samples and execution context.