Home GnuPG

tests: Add option to time the S2K function.
fe38d3815b4cUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

tests: Add option to time the S2K function.

* tests/t-kdf.c: Include stopwatch.h.
(dummy_consumer): new.
(bench_s2k): New.
(main): Add option parser and option --s2k.

For example:

$ ./t-kdf --s2k 17659904

88.0ms

$ ./t-kdf --s2k 65536
0.3ms

This test is similar to the code done by gpg-agent to calibrate the
S2K count.

Details

Provenance
wernerAuthored on Apr 15 2015, 12:34 PM
Parents
rC3b03a3b49323: tests: Improve stopwatch.h
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rCfe38d3815b4c: tests: Add option to time the S2K function. (authored by Werner Koch <wk@gnupg.org>).Apr 15 2015, 12:34 PM