Uname : Linux premium36.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Soft : LiteSpeed
Ip : 198.54.115.237
Port : 443
~
/
proc
/
thread-self
/
root
/
usr
/
lib
/
node_modules
/
npm
/
node_modules
/
fast-json-stable-stringify
/
benchmark
[ HOME ]
Exec
Submit
File Name : index.js
'use strict'; const Benchmark = require('benchmark'); const suite = new Benchmark.Suite; const testData = require('./test.json'); const stringifyPackages = { // 'JSON.stringify': JSON.stringify, 'fast-json-stable-stringify': require('../index'), 'json-stable-stringify': true, 'fast-stable-stringify': true, 'faster-stable-stringify': true }; for (const name in stringifyPackages) { let func = stringifyPackages[name]; if (func === true) func = require(name); suite.add(name, function() { func(testData); }); } suite .on('cycle', (event) => console.log(String(event.target))) .on('complete', function () { console.log('The fastest is ' + this.filter('fastest').map('name')); }) .run({async: true});
Back
Folder Name
Submit
File Name
File Content
Submit
Name
Type
Size
Permission
Last Modified
Actions
.
dir
-
0755
2024-03-03 10:36:29
..
dir
-
0755
2024-03-03 10:36:29
index.js
text/plain
740 B
0644
2021-03-10 02:36:37
test.json
application/json
3.74 KB
0644
2021-03-10 02:36:37