https://github.com/mupq/pqm4
Revision 17e43e52e75ca5197c397362cab6bcf885712a71 authored by vincentvbh on 08 March 2021, 09:09:53 UTC, committed by GitHub on 08 March 2021, 09:09:53 UTC
1 parent 27c7089
Raw File
Tip revision: 17e43e52e75ca5197c397362cab6bcf885712a71 authored by vincentvbh on 08 March 2021, 09:09:53 UTC
fix a bug with very low prabability (#185)
Tip revision: 17e43e5
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