https://github.com/mupq/pqm4
Raw File
Tip revision: b85ef8453038860145bc112b05fc02469b3ebf0f authored by Ko- on 13 May 2019, 16:12:49 UTC
Update benchmarks for SABER
Tip revision: b85ef84
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:])

        test = mupq.SpeedBenchmark(M4Settings(), m4)
        test.test_all(sys.argv[1:])

        test = mupq.HashingBenchmark(M4Settings(), m4)
        test.test_all(sys.argv[1:])

        test = mupq.SizeBenchmark(M4Settings(), m4)
        test.test_all(sys.argv[1:])
back to top