https://github.com/mupq/pqm4
Revision 26f810d332b829a2c16220294db7a882b2072f4d authored by rugo on 07 June 2022, 08:39:12 UTC, committed by GitHub on 07 June 2022, 08:39:12 UTC
* Add .vscode to gitignore * Add alignment to arrays used in Kyber to address #235
1 parent 0b50e72
Tip revision: 26f810d332b829a2c16220294db7a882b2072f4d authored by rugo on 07 June 2022, 08:39:12 UTC
Fix alignment issues in Kyber (#236)
Fix alignment issues in Kyber (#236)
Tip revision: 26f810d
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 ...