mirror of
https://github.com/restic/restic.git
synced 2026-11-13 09:35:24 +00:00
Add more benchmarks
This commit is contained in:
1 parent
3d058929e3
commit
8986c75091
1 file changed
+18
@@ -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) {
|
||||
f := chunker.Pol(0x3af4b284899)
|
||||
d := f.Deg()
|
||||
|
||||
Reference in new issue
Block a user