'use strict' var split = require('./') var bench = require('fastbench') var binarySplit = require('binary-split') var 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() } var run = bench([ benchSplit, benchBinarySplit ], 10000) run(run)
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
LICENSE | File | 764 B | 0644 |
|
README.md | File | 3.59 KB | 0644 |
|
bench.js | File | 462 B | 0644 |
|
index.js | File | 3.45 KB | 0644 |
|
package.json | File | 3.67 KB | 0644 |
|
test.js | File | 7.4 KB | 0644 |
|