davidmarkclements / rfdc

Really Fast Deep Clone
MIT License
643 stars 25 forks source link

Add `structuredClone` to benchmarks #35

Closed silverwind closed 7 months ago

silverwind commented 1 year ago

https://developer.mozilla.org/en-US/docs/Web/API/structuredClone

In my limited testing, it's around 2-3 times slower than this module with proto: false, circles: true options.

mcollina commented 1 year ago

would you like to send a PR? Adding that it would be awesome.

silverwind commented 1 year ago

Could have a look I guess. It will require Node.js 17 or higher.

mcollina commented 1 year ago

For benchmarks it's ok

rluvaton commented 7 months ago

I see @mcollina added it in 60507bfc0af798f033f645cebdf4aabb97a3ab77 but did not update the readme with the results

mcollina commented 7 months ago

Done