Skip to content

Commit

Permalink
Added bench-detailed target.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgm committed Jan 24, 2015
1 parent e887148 commit 63a7507
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ lint:
bench:
sudo renice 99 $$$$; node bench/bench.js ${BENCHINP}

bench-detailed: bench/samples
sudo renice 99 $$$$; \
for x in bench/samples/*.md; do echo $$x; node bench/bench.js $$x; done | \
tee out | awk -f bench/format_benchmarks.awk

npm:
cd js; npm publish

Expand Down
2 changes: 0 additions & 2 deletions bench/detailed_benchmarks.sh

This file was deleted.

6 changes: 3 additions & 3 deletions bench/format_benchmarks.awk
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ BEGIN {
print "|------------------------|---------:|---------:|---------:|----------:|"
}
{
if (/samples\//) {
sub(/samples\//, "");
printf "|%-24s|", $7;
if (/^bench\/samples\//) {
sub(/bench\/samples\//, "");
printf "|%-24s|", $0;
} else if (/^showdown/) {
sub(/,/, "");
showdown = $4;
Expand Down

0 comments on commit 63a7507

Please sign in to comment.