This commit is contained in:
parent
2b703e9af2
commit
70c2da4a4d
40 changed files with 821 additions and 117 deletions
21
src/data/bench_test.go
Normal file
21
src/data/bench_test.go
Normal file
|
@ -0,0 +1,21 @@
|
|||
package data_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"git.urbach.dev/cli/q/src/data"
|
||||
)
|
||||
|
||||
func BenchmarkFinalize(b *testing.B) {
|
||||
d := data.Data{}
|
||||
d.Insert("1", []byte("Beautiful is better than ugly."))
|
||||
d.Insert("2", []byte("Explicit is better than implicit."))
|
||||
d.Insert("3", []byte("Simple is better than complex."))
|
||||
d.Insert("4", []byte("Complex is better than complicated."))
|
||||
d.Insert("5", []byte("Flat is better than nested."))
|
||||
d.Insert("6", []byte("Sparse is better than dense."))
|
||||
|
||||
for b.Loop() {
|
||||
d.Finalize()
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue