Skip to content

Commit

Permalink
Use js for benchmark cleanup
Browse files Browse the repository at this point in the history
Fix #199
  • Loading branch information
isaacs committed Jul 2, 2015
1 parent 957fd93 commit f96190b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
6 changes: 6 additions & 0 deletions benchclean.js
@@ -0,0 +1,6 @@
var rimraf = require('rimraf')
var bf = (process.env.TMPDIR || '/tmp') + '/benchmark-fixture'
rimraf('{' + [bf, 'v8.log', 'profile.txt'].join(',') + '}', function (er) {
if (er)
throw er
})
4 changes: 0 additions & 4 deletions benchclean.sh

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -36,7 +36,7 @@
"test-regen": "npm run profclean && TEST_REGEN=1 node test/00-setup.js",
"bench": "bash benchmark.sh",
"prof": "bash prof.sh && cat profile.txt",
"benchclean": "bash benchclean.sh"
"benchclean": "node benchclean.js"
},
"license": "ISC"
}
2 changes: 1 addition & 1 deletion prof.sh
Expand Up @@ -14,6 +14,6 @@ node --prof -e '
})
//console.log(glob.sync("**/*.txt").length);
' "$wd"
mv v8.log "$wd"
mv *v8.log "$wd/v8.log"
cd "$wd"
node-tick-processor > profile.txt

0 comments on commit f96190b

Please sign in to comment.