PHP 8.2.30
Preview: bench.js Size: 472 B
/home/byroehnu/easepaybiz.easetack.com/node_modules/split2/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)

Directory Contents

Dirs: 0 × Files: 7

Name Size Perms Modified Actions
127 B lr--r--r-- 2026-03-14 01:49:06
Edit Download
472 B lrw-r--r-- 2026-03-05 00:19:57
Edit Download
3.68 KB lrw-r--r-- 2026-03-05 00:19:57
Edit Download
764 B lrw-r--r-- 2026-03-05 00:19:57
Edit Download
1.09 KB lrw-r--r-- 2026-03-05 00:19:58
Edit Download
3.30 KB lrw-r--r-- 2026-03-05 00:19:58
Edit Download
7.74 KB lrw-r--r-- 2026-03-05 00:19:58
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).