Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
srv
/
data
/
trash
/
vhost_www.bachtale.com_1719306535
/
htdocs
/
node_modules
/
mime
/
src
/
/srv/data/trash/vhost_www.bachtale.com_1719306535/htdocs/node_modules/mime/src/benchmark.js
const Benchmark = require('benchmark'); const mime = require('..'); const mimeLite = require('../lite'); const suite = new Benchmark.Suite(); const extensions = Object.keys(mime._types); let idx = 0; suite .add('mime.getType', function() { mime.getType(extensions[idx++]); if (idx >= extensions.length) idx = 0; } ) .add('mimeLite.getType', function() { mimeLite.getType(extensions[idx++]); if (idx >= extensions.length) idx = 0; } ) .on('cycle', function(event) { console.log(String(event.target)); }) .run();