bench: update enry v1.6.7 vs linguist v7.1.3

Signed-off-by: Alexander Bezzubov <bzz@apache.org>
This commit is contained in:
Alexander Bezzubov 2018-12-27 14:46:29 +01:00
parent db21cd6557
commit 890afc400f
No known key found for this signature in database
GPG Key ID: 8039F5787EFCD05D
9 changed files with 28080 additions and 25742 deletions

@ -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.

@ -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

1 timeInterval enry numberOfFiles
2 1us-10us enry 96 83
3 10us-100us enry 1244 1341
4 100us-1ms enry 321 314
5 1ms-10ms enry 135 146
6 10ms-100ms enry 43 48

File diff suppressed because it is too large Load Diff

@ -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

1 function tool iterations ns/op
2 GetLanguage() enry 100 1915861259 2333748307
3 Classify() enry 5 3 39977943775 53842505853
4 GetLanguagesByModeline() enry 1000 196571071 228234491
5 GetLanguagesByFilename() enry 2000000 1000000 89774 124782
6 GetLanguagesByShebang() enry 100000 1892569 2339138
7 GetLanguagesByExtension() enry 200000 921160 1110007
8 GetLanguagesByContent() enry 1000 500 286159159 342358978

@ -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

1 timeInterval linguist numberOfFiles
2 1us-10us linguist 0
3 10us-100us linguist 74 120
4 100us-1ms linguist 920 1070
5 1ms-10ms linguist 788 816
6 10ms-100ms linguist 57 71

File diff suppressed because it is too large Load Diff

@ -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

1 function tool iterations ns/op
2 GetLanguage() linguist 5 3979096800 3822076000
3 Classify() linguist 5 178253431800 329660597600
4 GetLanguagesByModeline() linguist 5 2582204000 2770912600
5 GetLanguagesByFilename() linguist 5 2688800 34159000
6 GetLanguagesByShebang() linguist 5 77155200 159317200
7 GetLanguagesByExtension() linguist 5 6688800 354929800
8 GetLanguagesByContent() linguist 5 161719000 3881611000

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 16 KiB

@ -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