Page MenuHomePhorge

bench.js
No OneTemporary

Size
372 B
Referenced Files
None
Subscribers
None

bench.js

import { readFileSync } from 'node:fs';
import { performance } from 'node:perf_hooks';
const t0 = performance.now();
const raw = readFileSync(new URL('./ant.json', import.meta.url), 'utf-8');
console.log('Load:', (performance.now() - t0).toFixed(2), 'ms');
const t1 = performance.now();
JSON.parse(raw);
console.log('Parse:', (performance.now() - t1).toFixed(2), 'ms');

File Metadata

Mime Type
application/javascript
Expires
Thu, Mar 26, 4:42 PM (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
512002
Default Alt Text
bench.js (372 B)

Event Timeline