Skip to content

Commit

Permalink
Moved detailed benchmark and regular benchmark to bench/.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgm committed Jan 24, 2015
1 parent 59d22a3 commit e887148
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ test: $(SPEC)
node test/test.js $<

lint:
eslint -c eslint.json ${JSMODULES} bin/commonmark test/test.js bench.js
eslint -c eslint.json ${JSMODULES} bin/commonmark test/test.js bench/bench.js

bench:
sudo renice 99 $$$$; node bench.js ${BENCHINP}
sudo renice 99 $$$$; node bench/bench.js ${BENCHINP}

npm:
cd js; npm publish
Expand Down
2 changes: 1 addition & 1 deletion bench.js → bench/bench.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var Benchmark = require('benchmark').Benchmark;
var suite = new Benchmark.Suite();
var fs = require('fs');
var commonmark = require('./lib/index.js');
var commonmark = require('../lib/index.js');
// npm install showdown
var Showdown = require('showdown').converter;
// npm install marked
Expand Down
2 changes: 2 additions & 0 deletions bench/detailed_benchmarks.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sudo echo ""
for x in bench/samples/*.md; do make bench BENCHINP=$x; done | awk -f bench/format_benchmarks.awk
File renamed without changes.
2 changes: 0 additions & 2 deletions tools/detailed_benchmarks.sh

This file was deleted.

0 comments on commit e887148

Please sign in to comment.