renamed benchmark directory to benchmarks
updated .gitignore
This commit is contained in:
parent
4ca7ffb769
commit
22cb6f602e
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +1,2 @@
|
||||
.linguist
|
||||
benchmark/output
|
||||
benchmarks/output
|
||||
|
8
Makefile
8
Makefile
@ -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)
|
||||
|
@ -1,5 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd benchmark/output && go run ../parser/main.go -outdir ../csv && \
|
||||
cd ../csv && go run ../parser/main.go -distribution
|
||||
|
@ -1,4 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
mkdir -p benchmark/output && go test -run NONE -bench=. -benchtime=120s -timeout=100h >benchmark/output/enry_total.bench && \
|
||||
benchmark/linguist-total.rb 5 >benchmark/output/linguist_total.bench
|
@ -1,4 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
benchmark/run-benchmark.sh && make benchmarks-slow && \
|
||||
benchmark/parse.sh && benchmark/plot-histogram.gp
|
Can't render this file because it is too large.
|
Can't render this file because it is too large.
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
5
benchmarks/parse.sh
Executable file
5
benchmarks/parse.sh
Executable file
@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd benchmarks/output && go run ../parser/main.go -outdir ../csv && \
|
||||
cd ../csv && go run ../parser/main.go -distribution
|
||||
|
@ -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
|
||||
@ -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
benchmarks/run-benchmarks.sh
Executable file
4
benchmarks/run-benchmarks.sh
Executable file
@ -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
benchmarks/run.sh
Executable file
4
benchmarks/run.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
benchmarks/run-benchmarks.sh && make benchmarks-slow && \
|
||||
benchmarks/parse.sh && benchmarks/plot-histogram.gp
|
Loading…
Reference in New Issue
Block a user