https://github.com/mupq/pqm4
Revision 844e7cafdb5df8416abef3c03b49edb810b7e396 authored by Matthias J. Kannwischer on 31 August 2021, 07:49:19 UTC, committed by GitHub on 31 August 2021, 07:49:19 UTC
* use publicinputs AES for ntrulpr * new benchmarks
1 parent 34e5da0
Tip revision: 844e7cafdb5df8416abef3c03b49edb810b7e396 authored by Matthias J. Kannwischer on 31 August 2021, 07:49:19 UTC
Use T-Table AES for public inputs in ntrulpr (again) (#212)
Use T-Table AES for public inputs in ntrulpr (again) (#212)
Tip revision: 844e7ca
benchmarks.py
#!/usr/bin/env python3
from mupq import mupq
from interface import parse_arguments, get_platform
if __name__ == "__main__":
args, rest = parse_arguments()
platform, settings = get_platform(args)
with platform:
schemes = [s for s in rest if s not in ['--nostack',
'--nospeed',
'--nohashing',
'--nosize']]
if "--nostack" not in rest:
test = mupq.StackBenchmark(settings, platform)
test.test_all(schemes)
if "--nospeed" not in rest:
test = mupq.SpeedBenchmark(settings, platform)
test.test_all(schemes)
if "--nohashing" not in rest:
test = mupq.HashingBenchmark(settings, platform)
test.test_all(schemes)
if "--nosize" not in rest:
test = mupq.SizeBenchmark(settings, platform)
test.test_all(schemes)
Computing file changes ...