Refactor the nearly identical benchmark loops into a single loop.
authorcheloha <cheloha@openbsd.org>
Sat, 11 Aug 2018 16:07:36 +0000 (16:07 +0000)
committercheloha <cheloha@openbsd.org>
Sat, 11 Aug 2018 16:07:36 +0000 (16:07 +0000)
commit1ceb7bbbc051f457292791fc92bf46ec779fe19d
tree3cdd9faf5e304e13df3106e3cf0aac8177d13c2b
parent7806ab7ba51c2a9d22c85516636b3d6e684f2689
Refactor the nearly identical benchmark loops into a single loop.

Move all of the benchmark code -- loop initialization, the loops, and
the report printing -- into a new function, benchmark().  Eliminates
lots of duplicate code.

Regressions to 1.20 caught by tb@ and inoguchi@.  Tweaked by tb@.

ok tb@, jsing@
usr.bin/openssl/s_time.c