tests: Add a prime mode to benchmark.
authorWerner Koch <wk@gnupg.org>
Tue, 14 Oct 2014 19:29:33 +0000 (21:29 +0200)
committerWerner Koch <wk@gnupg.org>
Mon, 24 Nov 2014 11:29:21 +0000 (12:29 +0100)
commit1b4210c204a5ef5e631187509e011b8468a134ef
tree939770ba6bc105518cd741019612f0ad6edb737f
parente6130034506013d6153465a2bedb6fb08a43f74d
tests: Add a prime mode to benchmark.

* tests/benchmark.c (progress_cb): Add a single char mode.
(prime_bench): New.
(main): Add a "prime" mode.  Factor with_progress out to file scope.

Signed-off-by: Werner Koch <wk@gnupg.org>
tests/benchmark.c