{"id":22319388,"url":"https://github.com/streamich/fastest-json-copy","last_synced_at":"2025-07-29T13:31:47.967Z","repository":{"id":49424824,"uuid":"303075616","full_name":"streamich/fastest-json-copy","owner":"streamich","description":"Fastest JSON deep clone implementation","archived":false,"fork":false,"pushed_at":"2023-12-15T08:26:32.000Z","size":141,"stargazers_count":14,"open_issues_count":5,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-11-11T19:11:56.245Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/streamich.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-10-11T08:30:49.000Z","updated_at":"2024-06-26T03:56:52.000Z","dependencies_parsed_at":"2024-02-05T10:15:03.018Z","dependency_job_id":null,"html_url":"https://github.com/streamich/fastest-json-copy","commit_stats":{"total_commits":13,"total_committers":2,"mean_commits":6.5,"dds":"0.15384615384615385","last_synced_commit":"cbd70313d1f3f99dd621bf7986a72db44241e542"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":"streamich/tpl-ts-lib","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamich%2Ffastest-json-copy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamich%2Ffastest-json-copy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamich%2Ffastest-json-copy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamich%2Ffastest-json-copy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/streamich","download_url":"https://codeload.github.com/streamich/fastest-json-copy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228017953,"owners_count":17856841,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-04T00:08:40.671Z","updated_at":"2024-12-04T00:08:41.385Z","avatar_url":"https://github.com/streamich.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `fastest-json-copy`\n\n- Fastest JSON deep clone implementation for Node.js\n- Goal of this project is to track and maintain the fastest deep cloning function for plain JavaScript objects (POJOs), aka JSON objects.\n- Keeps track of benchmarks of all other implementations.\n\n## Usage\n\nInstall\n\n```\nyarn add fastest-json-copy\n```\n\nUse\n\n```js\nimport {copy} from 'fastest-json-copy';\n\ncopy({foo: 'bar'});\n```\n\n\n## Performance\n\nFor primitive values, 10x faster than `fast-copy` and 70x faster than `JSON.parse(JSON.stringify)`.\n\n```\nnode benchmarks/primitives.js \n1. fastest-json-copy (v1) x 14,841,253 ops/sec ±0.65% (92 runs sampled)\n2. fastest-json-copy (v2) x 14,092,359 ops/sec ±0.64% (91 runs sampled)\n3. fast-copy x 1,486,431 ops/sec ±2.26% (92 runs sampled)\n4. JSON.parse(JSON.stringify) x 211,240 ops/sec ±0.76% (88 runs sampled)\n5. lodash.cloneDeep x 3,767,042 ops/sec ±1.06% (92 runs sampled)\n6. fast-clone x 16,377,211 ops/sec ±0.86% (91 runs sampled)\n7. deepclone x 4,283,380 ops/sec ±0.84% (91 runs sampled)\n8. fast-deepclone x 2,668,417 ops/sec ±0.70% (89 runs sampled)\nFastest is 6. fast-clone\n```\n\nFor small objects, 3x faster than `fast-copy` and 10x faster than `JSON.parse(JSON.stringify)`.\n\n```\nnode benchmarks/small-values.js \n1. fastest-json-copy (v1) x 1,829,560 ops/sec ±1.78% (91 runs sampled)\n2. fastest-json-copy (v2) x 1,811,327 ops/sec ±0.86% (93 runs sampled)\n3. fast-copy x 547,079 ops/sec ±1.95% (88 runs sampled)\n4. JSON.parse(JSON.stringify) x 182,498 ops/sec ±0.72% (90 runs sampled)\n5. lodash.cloneDeep x 220,452 ops/sec ±1.43% (91 runs sampled)\n6. fast-clone x 139,153 ops/sec ±1.04% (87 runs sampled)\n7. deepclone x 229,912 ops/sec ±1.03% (89 runs sampled)\n8. fast-deepclone x 153,742 ops/sec ±0.74% (90 runs sampled)\nFastest is 1. fastest-json-copy (v1)\n```\n\nFor large objects, 3x faster than `fast-copy` and 5x faster than `JSON.parse(JSON.stringify)`.\n\n```\nnode benchmarks/large-values.js \n1. fastest-json-copy (v1) x 47,361 ops/sec ±1.98% (92 runs sampled)\n2. fastest-json-copy (v2) x 47,662 ops/sec ±0.77% (89 runs sampled)\n3. fast-copy x 18,639 ops/sec ±1.55% (89 runs sampled)\n4. JSON.parse(JSON.stringify) x 10,399 ops/sec ±0.78% (90 runs sampled)\n5. lodash.cloneDeep x 6,284 ops/sec ±0.79% (91 runs sampled)\n6. fast-clone x 6,437 ops/sec ±0.70% (92 runs sampled)\n7. deepclone x 5,809 ops/sec ±0.75% (91 runs sampled)\n8. fast-deepclone x 5,057 ops/sec ±0.82% (89 runs sampled)\nFastest is 2. fastest-json-copy (v2),1. fastest-json-copy (v1)\n```\n\n## License\n\n[MIT © Vadim Dalecky](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstreamich%2Ffastest-json-copy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstreamich%2Ffastest-json-copy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstreamich%2Ffastest-json-copy/lists"}