https://github.com/mupq/pqm4
Revision 62d871045fe45702a11771edc6ceadd7a283f078 authored by Matthias J. Kannwischer on 16 August 2021, 08:36:26 UTC, committed by Matthias J. Kannwischer on 16 August 2021, 08:36:26 UTC
1 parent 4fee0f7
Tip revision: 62d871045fe45702a11771edc6ceadd7a283f078 authored by Matthias J. Kannwischer on 16 August 2021, 08:36:26 UTC
add rainbow to skiplist
add rainbow to skiplist
Tip revision: 62d8710
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 ...