This commit is contained in:
2025-01-27 22:41:25 +09:00
parent c91142a039
commit bf44daf2e3
4209 changed files with 422452 additions and 0 deletions

27
server/node_modules/split2/bench.js generated vendored Normal file
View File

@@ -0,0 +1,27 @@
'use strict'
const split = require('./')
const bench = require('fastbench')
const binarySplit = require('binary-split')
const fs = require('fs')
function benchSplit (cb) {
fs.createReadStream('package.json')
.pipe(split())
.on('end', cb)
.resume()
}
function benchBinarySplit (cb) {
fs.createReadStream('package.json')
.pipe(binarySplit())
.on('end', cb)
.resume()
}
const run = bench([
benchSplit,
benchBinarySplit
], 10000)
run(run)