mirror of
https://github.com/JasonYANG170/IOTConnect-Web.git
synced 2024-11-27 14:16:34 +00:00
19 lines
268 B
JavaScript
19 lines
268 B
JavaScript
'use strict'
|
|
|
|
var split = require('./')
|
|
var bench = require('fastbench')
|
|
var fs = require('fs')
|
|
|
|
function benchSplit (cb) {
|
|
fs.createReadStream('package.json')
|
|
.pipe(split())
|
|
.on('end', cb)
|
|
.resume()
|
|
}
|
|
|
|
var run = bench([
|
|
benchSplit
|
|
], 10000)
|
|
|
|
run(run)
|