https://github.com/mupq/pqm4
Revision 90754b17fb0e50eb4aad6531c7cee3f1903d259a authored by Matthias J. Kannwischer on 17 April 2020, 04:51:51 UTC, committed by GitHub on 17 April 2020, 04:51:51 UTC
* integrate sha512 from supercop20200409 * update benchmarks with new SHA512
1 parent 20f1dff
Tip revision: 90754b17fb0e50eb4aad6531c7cee3f1903d259a authored by Matthias J. Kannwischer on 17 April 2020, 04:51:51 UTC
Faster SHA512 (#136)
Faster SHA512 (#136)
Tip revision: 90754b1
benchmarks.py
#!/usr/bin/env python3
from mupq import mupq
from interface import M4Settings, M4
import sys
if __name__ == "__main__":
with M4() as m4:
if "--nostack" not in sys.argv:
test = mupq.StackBenchmark(M4Settings(), m4)
test.test_all(sys.argv[1:])
if "--nospeed" not in sys.argv:
test = mupq.SpeedBenchmark(M4Settings(), m4)
test.test_all(sys.argv[1:])
if "--nohashing" not in sys.argv:
test = mupq.HashingBenchmark(M4Settings(), m4)
test.test_all(sys.argv[1:])
if "--nosize" not in sys.argv:
test = mupq.SizeBenchmark(M4Settings(), m4)
test.test_all(sys.argv[1:])
Computing file changes ...