Skip to content

Commit

Permalink
bench: update enry v1.6.7 vs linguist v7.1.3
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
  • Loading branch information
bzz committed Dec 27, 2018
1 parent db21cd6 commit 890afc4
Show file tree
Hide file tree
Showing 9 changed files with 28,080 additions and 25,742 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ As benchmarks depend on Ruby and Github-Linguist gem make sure you have:
If you want to reproduce the same benchmarks as reported above:
- Make sure all [dependencies](#benchmark-dependencies) are installed
- Install [gnuplot](http://gnuplot.info) (in order to plot the histogram)
- Run `$ benchmarks/run.sh`
- Run `ENRY_TEST_REPO=.linguist benchmarks/run.sh` (takes ~15h)

It will run the benchmarks for enry and linguist, parse the output, create csv files and plot the histogram. This takes some time.

Expand Down
10 changes: 5 additions & 5 deletions benchmarks/csv/enry-distribution.csv
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
timeInterval,enry,numberOfFiles
1us-10us,enry,96
10us-100us,enry,1244
100us-1ms,enry,321
1ms-10ms,enry,135
10ms-100ms,enry,43
1us-10us,enry,83
10us-100us,enry,1341
100us-1ms,enry,314
1ms-10ms,enry,146
10ms-100ms,enry,48
26,368 changes: 13,513 additions & 12,855 deletions benchmarks/csv/enry-samples.csv

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions benchmarks/csv/enry-total.csv
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
function,tool,iterations,ns/op
GetLanguage(),enry,100,1915861259
Classify(),enry,5,39977943775
GetLanguagesByModeline(),enry,1000,196571071
GetLanguagesByFilename(),enry,2000000,89774
GetLanguagesByShebang(),enry,100000,1892569
GetLanguagesByExtension(),enry,200000,921160
GetLanguagesByContent(),enry,1000,286159159
GetLanguage(),enry,100,2333748307
Classify(),enry,3,53842505853
GetLanguagesByModeline(),enry,1000,228234491
GetLanguagesByFilename(),enry,1000000,124782
GetLanguagesByShebang(),enry,100000,2339138
GetLanguagesByExtension(),enry,200000,1110007
GetLanguagesByContent(),enry,500,342358978
8 changes: 4 additions & 4 deletions benchmarks/csv/linguist-distribution.csv
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
timeInterval,linguist,numberOfFiles
1us-10us,linguist,0
10us-100us,linguist,74
100us-1ms,linguist,920
1ms-10ms,linguist,788
10ms-100ms,linguist,57
10us-100us,linguist,120
100us-1ms,linguist,1070
1ms-10ms,linguist,816
10ms-100ms,linguist,71
27,394 changes: 14,537 additions & 12,857 deletions benchmarks/csv/linguist-samples.csv

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions benchmarks/csv/linguist-total.csv
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
function,tool,iterations,ns/op
GetLanguage(),linguist,5,3979096800
Classify(),linguist,5,178253431800
GetLanguagesByModeline(),linguist,5,2582204000
GetLanguagesByFilename(),linguist,5,2688800
GetLanguagesByShebang(),linguist,5,77155200
GetLanguagesByExtension(),linguist,5,6688800
GetLanguagesByContent(),linguist,5,161719000
GetLanguage(),linguist,5,3822076000
Classify(),linguist,5,329660597600
GetLanguagesByModeline(),linguist,5,2770912600
GetLanguagesByFilename(),linguist,5,34159000
GetLanguagesByShebang(),linguist,5,159317200
GetLanguagesByExtension(),linguist,5,354929800
GetLanguagesByContent(),linguist,5,3881611000
Binary file modified benchmarks/histogram/distribution.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions benchmarks/soft-hard-info.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Hardware and software used to run benchmarks

Dell XPS 9360
Linux 4.11.6-3-ARCH #1 SMP PREEMPT Thu Jun 22 12:21:46 CEST 2017 x86_64
go version go1.8.3 linux/amd64
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]

github/linguist/samples commit: d5c8db3fb91963c4b2762ca2ea2ff7cfac109f68
MacBookPro13,1
Darwin Kernel Version 16.7.0: Tue Jan 30 11:27:06 PST 2018; root:xnu-3789.73.11~1/RELEASE_X86_64 x86_64 i386
go version go1.10.3 darwin/amd64
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin16]

github/linguist v7.1.3 commit: e761f9b013e5b61161481fcb898b59721ee40e3d
src-d/enry v1.6.7 commit: 3d356c70ae322f41048f74d01c5e8572f5898d34

0 comments on commit 890afc4

Please sign in to comment.