fast-json-stringify:比JSON.stringify()快2倍

时间:2021-02-03 17:29:31
【文件属性】:
文件名称:fast-json-stringify:比JSON.stringify()快2倍
文件大小:64KB
文件格式:ZIP
更新时间:2021-02-03 17:29:31
json speed stringify JSON fast-json-stringify 对于小型有效负载, fast-json-stringify的速度明显快于JSON.stringify() 。 它的性能优势会随着您的有效负载的增长而缩小。 它与搭配得,后者会触发V8优化,最终将字符串转换为Buffer时可提高性能。 基准测试 机器: EX41S-SSD, Intel Core i7, 4Ghz, 64GB RAM, 4C/8T, SSD 。 Node.js v12.16.2 FJS creation x 59,805 ops/sec ±0.23% (91 runs sampled) JSON.stringify array x 5
【文件预览】:
fast-json-stringify-master
----.github()
--------stale.yml(772B)
--------dependabot.yml(136B)
--------workflows()
----.taprc(48B)
----server.js(616B)
----example.js(1KB)
----bench.js(3KB)
----LICENSE(1KB)
----test()
--------defaults.test.js(6KB)
--------basic.test.js(5KB)
--------ref.test.js(21KB)
--------json-schema-test-suite()
--------if-then-else.test.js(6KB)
--------sanitize5.test.js(357B)
--------allof.test.js(6KB)
--------debug-mode.test.js(2KB)
--------long.test.js(2KB)
--------missing-values.test.js(2KB)
--------nullable.test.js(3KB)
--------const.test.js(1KB)
--------typesArray.test.js(9KB)
--------patternProperties.test.js(3KB)
--------ref.json(154B)
--------clean-cache.test.js(656B)
--------unknownFormats.test.js(414B)
--------types()
--------required.test.js(4KB)
--------sanitize3.test.js(264B)
--------inferType.test.js(2KB)
--------any.test.js(3KB)
--------sanitize4.test.js(249B)
--------sanitize.test.js(2KB)
--------anyof.test.js(8KB)
--------array.test.js(5KB)
--------date.test.js(9KB)
--------surrogate.test.js(1KB)
--------nestedObjects.test.js(706B)
--------integer.test.js(3KB)
--------regex.test.js(624B)
--------invalidSchema.test.js(438B)
--------bigint.js(1KB)
--------sanitize6.test.js(362B)
--------additionalProperties.test.js(7KB)
--------oneof.test.js(7KB)
--------toJSON.test.js(3KB)
--------sanitize2.test.js(257B)
----build-schema-validator.js(561B)
----README.md(16KB)
----index.d.ts(5KB)
----.gitignore(671B)
----index.js(34KB)
----schema-validator.js(113KB)
----package.json(1KB)

网友评论