Skip to content

Commit

Permalink
update report
Browse files Browse the repository at this point in the history
  • Loading branch information
drmingdrmer committed Sep 18, 2019
1 parent 7076755 commit e6f528d
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 14 deletions.
5 changes: 5 additions & 0 deletions benchhelper/plot.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ set style line 3 lc rgb '#79A2F1' pt 6 ps 1 lt 1 lw 2;
set style line 4 lc rgb '#8ED0F1' pt 6 ps 1 lt 1 lw 2;
set style line 5 lc rgb '#8AE7CC' pt 6 ps 1 lt 1 lw 2;
set style line 1 lc rgb '#4688F1' pt 1 ps 1 lt 1 lw 2;
set style line 2 lc rgb '#6CA8F3' pt 6 ps 1 lt 1 lw 2;
set style line 3 lc rgb '#79A2F1' pt 6 ps 1 lt 1 lw 2;
set style line 4 lc rgb '#8ED0F1' pt 6 ps 1 lt 1 lw 2;
set style line 5 lc rgb '#8AE7CC' pt 6 ps 1 lt 1 lw 2;
`,
Green: `
set style line 1 lc rgb '#a2e2b8' pt 1 ps 1 lt 1 lw 2;
Expand Down
Binary file modified trie/report/bench_get_absent.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified trie/report/bench_get_present.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified trie/report/bench_msab_present.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions trie/report/fpr_get.data
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
key-count fpr
1000 0.005%
10000 0.000%
20000 0.000%
1000 0.027%
10000 0.004%
20000 0.005%
Binary file modified trie/report/fpr_get.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions trie/report/fpr_get.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
| key-count | fpr |
|-----------|--------|
| 1000 | 0.005% |
| 10000 | 0.000% |
| 20000 | 0.000% |
| 1000 | 0.027% |
| 10000 | 0.004% |
| 20000 | 0.005% |
Binary file modified trie/report/mem_usage.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 8 additions & 8 deletions trie/report/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ var flg *benchhelper.ReportCmdFlag
func main() {
flg = benchhelper.InitCmdFlag()

// getPresent()
// getAbsent()
getPresent()
getAbsent()
getMapSlimArrayBtree()
// memOverhead()
// fprGet()
memOverhead()
fprGet()
}

func getPresent() {
Expand All @@ -45,7 +45,7 @@ set xlabel 'key-count: n'
set ylabel 'ns/Get() present key' offset 1,0
`
script += benchhelper.Fformat.JPGHistogramTiny
script += benchhelper.LineStyles.Yellow
script += benchhelper.LineStyles.Green
script += benchhelper.Plot.Histogram

benchhelper.Fplot("report/bench_get_present.jpg", script)
Expand All @@ -66,7 +66,7 @@ set xlabel 'key-count: n'
set ylabel 'ns/Get() absent key' offset 1,0
`
script += benchhelper.Fformat.JPGHistogramTiny
script += benchhelper.LineStyles.Orange
script += benchhelper.LineStyles.Green
script += benchhelper.Plot.Histogram

benchhelper.Fplot("report/bench_get_absent.jpg", script)
Expand All @@ -87,7 +87,7 @@ set xlabel 'key-count: n'
set ylabel 'ns/Get()' offset 1,0
`
script += benchhelper.Fformat.JPGHistogramTiny
script += benchhelper.LineStyles.Colorful
script += benchhelper.LineStyles.Green
script += benchhelper.Plot.Histogram

benchhelper.Fplot("report/bench_msab_present.jpg", script)
Expand All @@ -109,7 +109,7 @@ set xlabel 'key-count: n'
set ylabel 'bits/key' offset 1,0
`
script += benchhelper.Fformat.JPGHistogramTiny
script += benchhelper.LineStyles.Green
script += benchhelper.LineStyles.Yellow
script += benchhelper.Plot.Histogram

benchhelper.Fplot("report/mem_usage.jpg", script)
Expand Down

0 comments on commit e6f528d

Please sign in to comment.