Skip to content

Commit

Permalink
renamed benchmark directory to benchmarks
Browse files Browse the repository at this point in the history
updated .gitignore
  • Loading branch information
mcarmonaa committed Jul 13, 2017
1 parent 4ca7ffb commit 22cb6f6
Show file tree
Hide file tree
Showing 20 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
.linguist
benchmark/output
benchmarks/output
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ code-generate: $(LINGUIST_PATH)
go run internal/code-generator/main.go

benchmarks: $(LINGUIST_PATH)
go test -run=NONE -bench=. && benchmark/linguist-total.sh
go test -run=NONE -bench=. && benchmarks/linguist-total.sh

benchmarks-samples: $(LINGUIST_PATH)
go test -run=NONE -bench=. -benchtime=5us && benchmark/linguist-samples.rb
go test -run=NONE -bench=. -benchtime=5us && benchmarks/linguist-samples.rb

benchmarks-slow: $(LINGUST_PATH)
mkdir -p benchmark/output && go test -run=NONE -bench=. -slow -benchtime=100ms -timeout=100h >benchmark/output/enry_samples.bench && \
benchmark/linguist-samples.rb 5 >benchmark/output/linguist_samples.bench
mkdir -p benchmarks/output && go test -run=NONE -bench=. -slow -benchtime=100ms -timeout=100h >benchmarks/output/enry_samples.bench && \
benchmarks/linguist-samples.rb 5 >benchmarks/output/linguist_samples.bench

clean:
rm -rf $(LINGUIST_PATH)
Expand Down
5 changes: 0 additions & 5 deletions benchmark/parse.sh

This file was deleted.

4 changes: 0 additions & 4 deletions benchmark/run-benchmark.sh

This file was deleted.

4 changes: 0 additions & 4 deletions benchmark/run.sh

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions benchmarks/parse.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

cd benchmarks/output && go run ../parser/main.go -outdir ../csv && \
cd ../csv && go run ../parser/main.go -distribution

File renamed without changes.
4 changes: 2 additions & 2 deletions benchmark/plot-histogram.gp → benchmarks/plot-histogram.gp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env gnuplot

set terminal png large font "arial,26" size 1920,1080
set output 'benchmark/histogram/distribution.png'
set output 'benchmarks/histogram/distribution.png'

set datafile separator comma
set key under
Expand All @@ -15,7 +15,7 @@ set bmargin 12
set autoscale
set title "Number of files per processing time"

plot newhistogram, 'benchmark/csv/enry-distribution.csv' using 3:xtic(1) title "enry", 'benchmark/csv/linguist-distribution.csv' using 3 title "linguist"
plot newhistogram, 'benchmarks/csv/enry-distribution.csv' using 3:xtic(1) title "enry", 'benchmarks/csv/linguist-distribution.csv' using 3 title "linguist"

unset output

4 changes: 4 additions & 0 deletions benchmarks/run-benchmarks.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh

mkdir -p benchmarks/output && go test -run NONE -bench=. -benchtime=120s -timeout=100h >benchmarks/output/enry_total.bench && \
benchmarks/linguist-total.rb 5 >benchmarks/output/linguist_total.bench
4 changes: 4 additions & 0 deletions benchmarks/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh

benchmarks/run-benchmarks.sh && make benchmarks-slow && \
benchmarks/parse.sh && benchmarks/plot-histogram.gp
File renamed without changes.

0 comments on commit 22cb6f6

Please sign in to comment.