mirror of
https://github.com/restic/restic.git
synced 2024-12-24 00:37:28 +00:00
Add more benchmarks
This commit is contained in:
parent
3d058929e3
commit
8986c75091
1 changed files with 18 additions and 0 deletions
|
@ -188,6 +188,24 @@ func BenchmarkPolDivMod(t *testing.B) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func BenchmarkPolDiv(t *testing.B) {
|
||||||
|
f := chunker.Pol(0x2482734cacca49)
|
||||||
|
g := chunker.Pol(0x3af4b284899)
|
||||||
|
|
||||||
|
for i := 0; i < t.N; i++ {
|
||||||
|
g.Div(f)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func BenchmarkPolMod(t *testing.B) {
|
||||||
|
f := chunker.Pol(0x2482734cacca49)
|
||||||
|
g := chunker.Pol(0x3af4b284899)
|
||||||
|
|
||||||
|
for i := 0; i < t.N; i++ {
|
||||||
|
g.Mod(f)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func BenchmarkPolDeg(t *testing.B) {
|
func BenchmarkPolDeg(t *testing.B) {
|
||||||
f := chunker.Pol(0x3af4b284899)
|
f := chunker.Pol(0x3af4b284899)
|
||||||
d := f.Deg()
|
d := f.Deg()
|
||||||
|
|
Loading…
Reference in a new issue