mirror of
https://github.com/xfarrow/blink
synced 2025-06-27 09:03:02 +02:00
Change endpoint from persons to people
This commit is contained in:
27
backend/apis/nodejs/node_modules/split2/bench.js
generated
vendored
Normal file
27
backend/apis/nodejs/node_modules/split2/bench.js
generated
vendored
Normal 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)
|
Reference in New Issue
Block a user