File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
crates/math/benches/polynomials Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,25 @@ pub fn polynomial_benchmarks(c: &mut Criterion) {
44
44
let y_poly = rand_poly ( order) ;
45
45
bench. iter ( || black_box ( & x_poly) * black_box ( & y_poly) ) ;
46
46
} ) ;
47
+ group. bench_function ( "fast mul" , |bench| {
48
+ let x_poly = rand_complex_mersenne_poly ( order as u32 ) ;
49
+ let y_poly = rand_complex_mersenne_poly ( order as u32 ) ;
50
+ bench. iter ( || black_box ( & x_poly) * black_box ( & y_poly) ) ;
51
+ } ) ;
52
+
53
+ let big_order = 9 ;
54
+ let x_poly = rand_complex_mersenne_poly ( big_order) ;
55
+ let y_poly = rand_complex_mersenne_poly ( big_order) ;
56
+ group. bench_function ( "fast_mul big poly" , |bench| {
57
+ bench. iter ( || {
58
+ black_box ( & x_poly)
59
+ . fast_multiplication :: < Degree2ExtensionField > ( black_box ( & y_poly) )
60
+ . unwrap ( )
61
+ } ) ;
62
+ } ) ;
63
+ group. bench_function ( "slow mul big poly" , |bench| {
64
+ bench. iter ( || black_box ( & x_poly) * black_box ( & y_poly) ) ;
65
+ } ) ;
47
66
48
67
let big_order = 9 ;
49
68
let x_poly = rand_complex_mersenne_poly ( big_order) ;
You can’t perform that action at this time.
0 commit comments