3 ms·
> Benchmarks aren’t showing structuredClone favorably versus JSON round tripping. Which ones? Structured clone seems to be approximately the same as FF accord
by zamalek 1y ago
> Benchmarks aren’t showing structuredClone favorably versus JSON round tripping.
Which ones?
Structured clone seems to be approximately the same as FF according to this (structuredClone is slightly faster on my machine, probably margin of error): https://measurethat.net/Benchmarks/Show/23052/0/structuredclone-vs-jsonparse-jsonstringify https://measurethat.net/Benchmarks/Show/23052/0/structuredcl... (Linux: FF 141, Chromium 138).
- hinkley 1y agoSo think about how that graph is going to look once the stringify part is twice as fast. Instead of being slightly faster it'll be statistically slower.