diff options
| author | Mattias Andrée <maandree@kth.se> | 2016-05-02 00:02:01 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2016-05-02 00:02:01 +0200 |
| commit | faf2cebb48ec44a14b025bbe858b66efb78577fa (patch) | |
| tree | 07ecca75e8e4271deccf8cc1111175274aa3b07e | |
| parent | Benchmarking stuff (diff) | |
| download | libzahl-faf2cebb48ec44a14b025bbe858b66efb78577fa.tar.gz libzahl-faf2cebb48ec44a14b025bbe858b66efb78577fa.tar.bz2 libzahl-faf2cebb48ec44a14b025bbe858b66efb78577fa.tar.xz | |
Buffer was too small
Signed-off-by: Mattias Andrée <maandree@kth.se>
| -rw-r--r-- | STATUS | 2 | ||||
| -rw-r--r-- | bench/benchmark-func.c | 2 | ||||
| -rw-r--r-- | bench/benchmark.c | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -59,7 +59,7 @@ zmodpow ................. slowest (zmul, zsqr. zmod) zmodpowu ................ slowest (zmul, zsqr, zmod) zsets ................... 13 % of gmp zstr_length(a, 10) ...... gmp is faster [always] (zdiv, zsqr) -zstr(a, b, n) ........... 8 % of gmp, 59 % of hebimath [gmp, tomsfastmath, and libtommath explode at ~3500] +zstr(a, b, n) ........... 8 % of gmp, 59 % of hebimath zrand(default uniform) .. 51 % of gmp zptest .................. slowest (zrand, zmodpow, zsqr, zmod) zsave ................... fastest [until ~600, then tomsfastmath; libtommath is suspicious] diff --git a/bench/benchmark-func.c b/bench/benchmark-func.c index 25f18b8..15af698 100644 --- a/bench/benchmark-func.c +++ b/bench/benchmark-func.c @@ -33,7 +33,7 @@ struct function { #define M_MAX 200 -static char buf[1000]; +static char buf[2000]; static z_t temp, temp2; static unsigned long long int measurements[M_MAX]; diff --git a/bench/benchmark.c b/bench/benchmark.c index 1404d93..7c525dc 100644 --- a/bench/benchmark.c +++ b/bench/benchmark.c @@ -17,7 +17,7 @@ int main(int argc, char *argv[]) { - char buf[1000]; + char buf[2000]; z_t a, b, c, d, tiny; jmp_buf jmp; size_t i; |
