aboutsummaryrefslogtreecommitdiffstats
path: root/bench/benchmark.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-04-27 00:39:31 +0200
committerMattias Andrée <maandree@kth.se>2016-04-27 00:39:31 +0200
commiteb13267f82e848d9a9b38a2791e5c7008bf8d157 (patch)
tree78291e85edd590b0d429a0dab611b85c621d97d7 /bench/benchmark.c
parentzstr_length.3: add missing blank space (diff)
downloadlibzahl-eb13267f82e848d9a9b38a2791e5c7008bf8d157.tar.gz
libzahl-eb13267f82e848d9a9b38a2791e5c7008bf8d157.tar.bz2
libzahl-eb13267f82e848d9a9b38a2791e5c7008bf8d157.tar.xz
zstr: add new parameter, n: the known limit out the length of the output
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'bench/benchmark.c')
-rw-r--r--bench/benchmark.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bench/benchmark.c b/bench/benchmark.c
index 27efee1..2c3f464 100644
--- a/bench/benchmark.c
+++ b/bench/benchmark.c
@@ -117,7 +117,8 @@ main(int argc, char *argv[])
BENCHMARK(zmodpowu(c, a, 12, b), 0);
BENCHMARK(zsets(c, "5495468234592964023447280368442884381000481887"), 0);
BENCHMARK(zstr_length(a, 10), 0);
- BENCHMARK(zstr(a, buf), 0);
+ BENCHMARK(zstr(a, buf, 0), 0);
+ BENCHMARK(zstr(a, buf, sizeof(buf) - 1), 0);
BENCHMARK(zrand(c, DEFAULT_RANDOM, QUASIUNIFORM, a), 0);
BENCHMARK(zrand(c, DEFAULT_RANDOM, UNIFORM, a), 0);
BENCHMARK(zptest(d, a, 5), 0);