https://github.com/mupq/pqm4
Revision aac104e26fd2fcbc21a208d2d26638f612f6c28b authored by Ko- on 30 May 2020, 10:58:54 UTC, committed by GitHub on 30 May 2020, 10:58:54 UTC
* Update mupq; updates NewHope clean to v1.1

* Update NewHope m4 to v1.1

* Redo NewHope benchmarks
1 parent 1cb728b
Raw File
Tip revision: aac104e26fd2fcbc21a208d2d26638f612f6c28b authored by Ko- on 30 May 2020, 10:58:54 UTC
Update NewHope to v1.1 (#158)
Tip revision: aac104e
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:])
back to top