Back | Home
الـ Path الحالي: /home/picotech/domains/instantly.picotech.app/public_html/public/uploads/../uploads/../../../../instantly.picotech.app/homes/../../wa.picotech.app/public_html/node_modules/path-exists/../duplexify/./.././debug/../node-wav/../domhandler/../tslib/.././form-data/../hasown/../ms/../@eshaz/../real-require/../@adiwajshing/../duplexify/../split2
الملفات الموجودة في هذا الـ Path:
.
..
LICENSE
README.md
bench.js
index.js
package.json
test.js
مشاهدة ملف: bench.js
'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)