davidmarkclements / rfdc

Really Fast Deep Clone

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add `structuredClone` to benchmarks

silverwind opened this issue · comments

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.

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

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

For benchmarks it's ok

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