From 8986c75091395a0a83e4cf8d2aa182326f938c63 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Mon, 6 Apr 2015 20:08:09 +0200 Subject: [PATCH] Add more benchmarks --- chunker/polynomials_test.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/chunker/polynomials_test.go b/chunker/polynomials_test.go index 411e299e3..5221c4953 100644 --- a/chunker/polynomials_test.go +++ b/chunker/polynomials_test.go @@ -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()