1
0
mirror of https://github.com/DataDog/go-profiler-notes.git synced 2025-07-15 23:54:16 +02:00

update bench

This commit is contained in:
Felix Geisendörfer
2021-02-03 15:06:19 +01:00
parent fe39ed91a6
commit c7f8adc8cc
10 changed files with 640 additions and 712 deletions

View File

@ -6,13 +6,14 @@ import (
)
type Record struct {
Workload string
Ops int
Goroutines int
Depth int
Blockprofilerate int
Run int
Bufsize int
Depth int
Duration time.Duration
Goroutines int
Ops int
Run int
Workload string
}
type Column struct {
@ -33,6 +34,9 @@ var Columns = []Column{
{"depth", func(r *Record) (string, error) {
return fmt.Sprintf("%d", r.Depth), nil
}},
{"bufsize", func(r *Record) (string, error) {
return fmt.Sprintf("%d", r.Bufsize), nil
}},
{"blockprofilerate", func(r *Record) (string, error) {
return fmt.Sprintf("%d", r.Blockprofilerate), nil
}},