Closed BridgeAR closed 6 years ago
The results are pretty much identical with v.8.9.4
inspectBench*10000: 47.341ms
jsonStringifySafeBench*10000: 42.532ms
fastSafeStringifyBench*10000: 18.991ms
inspectCircBench*10000: 55.913ms
jsonStringifyCircSafeBench*10000: 41.470ms
fastSafeStringifyCircBench*10000: 34.075ms
inspectDeepBench*10000: 359.457ms
jsonStringifySafeDeepBench*10000: 643.485ms
fastSafeStringifyDeepBench*10000: 281.572ms
inspectDeepCircBench*10000: 340.054ms
jsonStringifySafeDeepCircBench*10000: 659.497ms
fastSafeStringifyDeepCircBench*10000: 285.676ms
The benchmarks were a bit outdated. These results were done with Node.js 9.3 and json-stringify-safe v.5.0.1.
The main reason is that
util.inspect
got a lot faster in Node.js.