1 #include <cln/number.h>
7 #include <cln/timing.h>
11 int main (int argc, char * argv[])
14 if ((argc >= 3) && !strcmp(argv[1],"-r")) {
15 repetitions = atoi(argv[2]);
20 uintL len = atoi(argv[1]);
21 extern cl_LF zeta (int s, uintC len);
22 extern cl_LF compute_zeta_exp (int s, uintC len);
23 extern cl_LF compute_zeta_cvz1 (int s, uintC len);
24 extern cl_LF compute_zeta_cvz2 (int s, uintC len);
25 extern cl_LF zeta3 (uintC len);
27 ln(cl_I_to_LF(1000,len+10)); // fill cache
29 for (int rep = repetitions; rep > 0; rep--)
30 { p = compute_zeta_exp(3,len); }
34 for (int rep = repetitions; rep > 0; rep--)
35 { p = compute_zeta_cvz1(3,len); }
39 for (int rep = repetitions; rep > 0; rep--)
40 { p = compute_zeta_cvz2(3,len); }
44 for (int rep = repetitions; rep > 0; rep--)