UNPKG

charlike

Version:

Small, fast, simple and streaming project scaffolder for myself, but not only. Supports hundreds of template engines through the @JSTransformers API or if you want custom `render` function passed through options

19 lines (14 loc) 268 B
'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)