What's a reasonable size ratio for toom32?

Paul Zimmermann Paul.Zimmermann at inria.fr
Mon Sep 18 19:19:52 CEST 2023


       Dear Niels,

> See below patch, to support mpn_mul/0.6. Example output:
> 
>   $ ./speed -c -r -s 10-50 -t 5 -p 1000000 mpn_mul mpn_mul/0.6 
>   overhead 5.00 cycles, precision 1000000 units of 1.25e-09 secs, CPU freq 798.28 MHz
>                 mpn_mul   mpn_mul/0.6
>   10             215.48       #0.6295
>   15             443.16       #0.6066
>   20             784.50       #0.6138
>   25            1209.57       #0.5957
>   30            1490.59       #0.6934
>   35            1986.51       #0.6918
>   40            2547.99       #0.6981
>   45            3189.27       #0.6633
>   50            3827.87       #0.6734
> 
> What do you think? (Also deleted FLAG_RSIZE, which appeared unused).

looks nice!

> I think it's nicer to be able to specify it separately for each function
> under test.

indeed, can you try speed ... mpn_mul mpn_mul/0.9 mpn_mul/0.8 mpn_mul/0.7 mpn_mul/0.6 mpn_mul/0.5 ?

Paul


More information about the gmp-devel mailing list