Skip to content

Commit

Permalink
add benchmark pack-zip-simple
Browse files Browse the repository at this point in the history
  • Loading branch information
danmilon committed Feb 12, 2013
1 parent 9e8af81 commit 7043a7c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
17 changes: 17 additions & 0 deletions benchmark/pack-zip-simple.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
var archiver = require('../')
, streamBench = require('stream-bench')
, fs = require('fs')

var archive = archiver.create('zip')

archive
.addFile(fs.createReadStream(process.argv[2]), { name: 'large file' })
.finalize()

var bench = streamBench({
logReport: true,
interval: 500,
dump: true
})

archive.pipe(bench)
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
"devDependencies": {
"nodeunit": "~0.7.4",
"rimraf": "~2.1.2",
"mkdirp": "~0.3.4"
"mkdirp": "~0.3.4",
"stream-bench": "~0.1.2"
},
"keywords": [
"archive",
Expand Down

0 comments on commit 7043a7c

Please sign in to comment.