@@ -77,7 +77,7 @@ pub fn babybear_ops_benchmarks(c: &mut Criterion) {
7777 let mut group = c. benchmark_group ( "BabyBear operations using Lambdaworks" ) ;
7878
7979 for i in input. clone ( ) . into_iter ( ) {
80- group. bench_with_input ( format ! ( "Addition {:?}" , & i. len( ) ) , & i, |bench, i| {
80+ group. bench_with_input ( format ! ( "Addition {:?}" , i. len( ) ) , & i, |bench, i| {
8181 bench. iter ( || {
8282 for ( x, y) in i {
8383 black_box ( black_box ( x) + black_box ( y) ) ;
@@ -87,7 +87,7 @@ pub fn babybear_ops_benchmarks(c: &mut Criterion) {
8787 }
8888
8989 for i in input. clone ( ) . into_iter ( ) {
90- group. bench_with_input ( format ! ( "Multiplication {:?}" , & i. len( ) ) , & i, |bench, i| {
90+ group. bench_with_input ( format ! ( "Multiplication {:?}" , i. len( ) ) , & i, |bench, i| {
9191 bench. iter ( || {
9292 for ( x, y) in i {
9393 black_box ( black_box ( x) * black_box ( y) ) ;
@@ -97,7 +97,7 @@ pub fn babybear_ops_benchmarks(c: &mut Criterion) {
9797 }
9898
9999 for i in input. clone ( ) . into_iter ( ) {
100- group. bench_with_input ( format ! ( "Square {:?}" , & i. len( ) ) , & i, |bench, i| {
100+ group. bench_with_input ( format ! ( "Square {:?}" , i. len( ) ) , & i, |bench, i| {
101101 bench. iter ( || {
102102 for ( x, _) in i {
103103 black_box ( black_box ( x) . square ( ) ) ;
@@ -107,7 +107,7 @@ pub fn babybear_ops_benchmarks(c: &mut Criterion) {
107107 }
108108
109109 for i in input. clone ( ) . into_iter ( ) {
110- group. bench_with_input ( format ! ( "Inverse {:?}" , & i. len( ) ) , & i, |bench, i| {
110+ group. bench_with_input ( format ! ( "Inverse {:?}" , i. len( ) ) , & i, |bench, i| {
111111 bench. iter ( || {
112112 for ( x, _) in i {
113113 black_box ( black_box ( x) . inv ( ) . unwrap ( ) ) ;
@@ -117,7 +117,7 @@ pub fn babybear_ops_benchmarks(c: &mut Criterion) {
117117 }
118118
119119 for i in input. clone ( ) . into_iter ( ) {
120- group. bench_with_input ( format ! ( "Division {:?}" , & i. len( ) ) , & i, |bench, i| {
120+ group. bench_with_input ( format ! ( "Division {:?}" , i. len( ) ) , & i, |bench, i| {
121121 bench. iter ( || {
122122 for ( x, y) in i {
123123 black_box ( black_box ( x) / black_box ( y) ) . unwrap ( ) ;
@@ -136,7 +136,7 @@ pub fn babybear_extension_ops_benchmarks(c: &mut Criterion) {
136136 let mut group = c. benchmark_group ( "BabyBear Fp4 operations using Lambdaworks" ) ;
137137
138138 for i in input. clone ( ) . into_iter ( ) {
139- group. bench_with_input ( format ! ( "Addition of Fp4 {:?}" , & i. len( ) ) , & i, |bench, i| {
139+ group. bench_with_input ( format ! ( "Addition of Fp4 {:?}" , i. len( ) ) , & i, |bench, i| {
140140 bench. iter ( || {
141141 for ( x, y) in i {
142142 black_box ( black_box ( x) + black_box ( y) ) ;
@@ -147,7 +147,7 @@ pub fn babybear_extension_ops_benchmarks(c: &mut Criterion) {
147147
148148 for i in input. clone ( ) . into_iter ( ) {
149149 group. bench_with_input (
150- format ! ( "Multiplication of Fp4 {:?}" , & i. len( ) ) ,
150+ format ! ( "Multiplication of Fp4 {:?}" , i. len( ) ) ,
151151 & i,
152152 |bench, i| {
153153 bench. iter ( || {
@@ -160,7 +160,7 @@ pub fn babybear_extension_ops_benchmarks(c: &mut Criterion) {
160160 }
161161
162162 for i in input. clone ( ) . into_iter ( ) {
163- group. bench_with_input ( format ! ( "Square of Fp4 {:?}" , & i. len( ) ) , & i, |bench, i| {
163+ group. bench_with_input ( format ! ( "Square of Fp4 {:?}" , i. len( ) ) , & i, |bench, i| {
164164 bench. iter ( || {
165165 for ( x, _) in i {
166166 black_box ( black_box ( x) . square ( ) ) ;
@@ -170,7 +170,7 @@ pub fn babybear_extension_ops_benchmarks(c: &mut Criterion) {
170170 }
171171
172172 for i in input. clone ( ) . into_iter ( ) {
173- group. bench_with_input ( format ! ( "Inverse of Fp4 {:?}" , & i. len( ) ) , & i, |bench, i| {
173+ group. bench_with_input ( format ! ( "Inverse of Fp4 {:?}" , i. len( ) ) , & i, |bench, i| {
174174 bench. iter ( || {
175175 for ( x, y) in i {
176176 black_box ( black_box ( x) / black_box ( y) ) . unwrap ( ) ;
@@ -180,7 +180,7 @@ pub fn babybear_extension_ops_benchmarks(c: &mut Criterion) {
180180 }
181181
182182 for i in input. clone ( ) . into_iter ( ) {
183- group. bench_with_input ( format ! ( "Division of Fp4 {:?}" , & i. len( ) ) , & i, |bench, i| {
183+ group. bench_with_input ( format ! ( "Division of Fp4 {:?}" , i. len( ) ) , & i, |bench, i| {
184184 bench. iter ( || {
185185 for ( x, _) in i {
186186 black_box ( black_box ( x) . inv ( ) . unwrap ( ) ) ;
@@ -199,7 +199,7 @@ pub fn babybear_p3_ops_benchmarks(c: &mut Criterion) {
199199 let mut group = c. benchmark_group ( "BabyBear operations using Plonky3" ) ;
200200
201201 for i in input. clone ( ) . into_iter ( ) {
202- group. bench_with_input ( format ! ( "Addition {:?}" , & i. len( ) ) , & i, |bench, i| {
202+ group. bench_with_input ( format ! ( "Addition {:?}" , i. len( ) ) , & i, |bench, i| {
203203 bench. iter ( || {
204204 for ( x, y) in i {
205205 let _ = black_box ( black_box ( * x) + black_box ( * y) ) ;
@@ -209,7 +209,7 @@ pub fn babybear_p3_ops_benchmarks(c: &mut Criterion) {
209209 }
210210
211211 for i in input. clone ( ) . into_iter ( ) {
212- group. bench_with_input ( format ! ( "Multiplication {:?}" , & i. len( ) ) , & i, |bench, i| {
212+ group. bench_with_input ( format ! ( "Multiplication {:?}" , i. len( ) ) , & i, |bench, i| {
213213 bench. iter ( || {
214214 for ( x, y) in i {
215215 let _ = black_box ( black_box ( * x) * black_box ( * y) ) ;
@@ -219,7 +219,7 @@ pub fn babybear_p3_ops_benchmarks(c: &mut Criterion) {
219219 }
220220
221221 for i in input. clone ( ) . into_iter ( ) {
222- group. bench_with_input ( format ! ( "Square {:?}" , & i. len( ) ) , & i, |bench, i| {
222+ group. bench_with_input ( format ! ( "Square {:?}" , i. len( ) ) , & i, |bench, i| {
223223 bench. iter ( || {
224224 for ( x, _) in i {
225225 let _ = black_box ( black_box ( x) . square ( ) ) ;
@@ -228,7 +228,7 @@ pub fn babybear_p3_ops_benchmarks(c: &mut Criterion) {
228228 } ) ;
229229 }
230230 for i in input. clone ( ) . into_iter ( ) {
231- group. bench_with_input ( format ! ( "Inverse {:?}" , & i. len( ) ) , & i, |bench, i| {
231+ group. bench_with_input ( format ! ( "Inverse {:?}" , i. len( ) ) , & i, |bench, i| {
232232 bench. iter ( || {
233233 for ( x, _) in i {
234234 let _ = black_box ( black_box ( x) . inverse ( ) ) ;
@@ -238,7 +238,7 @@ pub fn babybear_p3_ops_benchmarks(c: &mut Criterion) {
238238 }
239239
240240 for i in input. clone ( ) . into_iter ( ) {
241- group. bench_with_input ( format ! ( "Division {:?}" , & i. len( ) ) , & i, |bench, i| {
241+ group. bench_with_input ( format ! ( "Division {:?}" , i. len( ) ) , & i, |bench, i| {
242242 bench. iter ( || {
243243 for ( x, y) in i {
244244 let _ = black_box ( black_box ( * x) / black_box ( * y) ) ;
@@ -258,7 +258,7 @@ pub fn babybear_extension_ops_benchmarks_p3(c: &mut Criterion) {
258258 let mut group = c. benchmark_group ( "BabyBear Fp4 operations using Plonky3" ) ;
259259
260260 for i in input. clone ( ) . into_iter ( ) {
261- group. bench_with_input ( format ! ( "Addition of Fp4 {:?}" , & i. len( ) ) , & i, |bench, i| {
261+ group. bench_with_input ( format ! ( "Addition of Fp4 {:?}" , i. len( ) ) , & i, |bench, i| {
262262 bench. iter ( || {
263263 for ( x, y) in i {
264264 let _ = black_box ( black_box ( * x) + black_box ( * y) ) ;
@@ -268,7 +268,7 @@ pub fn babybear_extension_ops_benchmarks_p3(c: &mut Criterion) {
268268 }
269269 for i in input. clone ( ) . into_iter ( ) {
270270 group. bench_with_input (
271- format ! ( "Multiplication of Fp4 {:?}" , & i. len( ) ) ,
271+ format ! ( "Multiplication of Fp4 {:?}" , i. len( ) ) ,
272272 & i,
273273 |bench, i| {
274274 bench. iter ( || {
@@ -280,7 +280,7 @@ pub fn babybear_extension_ops_benchmarks_p3(c: &mut Criterion) {
280280 ) ;
281281 }
282282 for i in input. clone ( ) . into_iter ( ) {
283- group. bench_with_input ( format ! ( "Square of Fp4 {:?}" , & i. len( ) ) , & i, |bench, i| {
283+ group. bench_with_input ( format ! ( "Square of Fp4 {:?}" , i. len( ) ) , & i, |bench, i| {
284284 bench. iter ( || {
285285 for ( x, _) in i {
286286 let _ = black_box ( black_box ( x) . square ( ) ) ;
@@ -290,7 +290,7 @@ pub fn babybear_extension_ops_benchmarks_p3(c: &mut Criterion) {
290290 }
291291
292292 for i in input. clone ( ) . into_iter ( ) {
293- group. bench_with_input ( format ! ( "Inverse of Fp4 {:?}" , & i. len( ) ) , & i, |bench, i| {
293+ group. bench_with_input ( format ! ( "Inverse of Fp4 {:?}" , i. len( ) ) , & i, |bench, i| {
294294 bench. iter ( || {
295295 for ( x, _) in i {
296296 let _ = black_box ( black_box ( x) . inverse ( ) ) ;
@@ -300,7 +300,7 @@ pub fn babybear_extension_ops_benchmarks_p3(c: &mut Criterion) {
300300 }
301301
302302 for i in input. clone ( ) . into_iter ( ) {
303- group. bench_with_input ( format ! ( "Division of Fp4 {:?}" , & i. len( ) ) , & i, |bench, i| {
303+ group. bench_with_input ( format ! ( "Division of Fp4 {:?}" , i. len( ) ) , & i, |bench, i| {
304304 bench. iter ( || {
305305 for ( x, y) in i {
306306 let _ = black_box ( black_box ( * x) / black_box ( * y) ) ;
0 commit comments