aboutsummaryrefslogtreecommitdiff
path: root/test/ec/perf_mod.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/ec/perf_mod.py')
-rwxr-xr-xtest/ec/perf_mod.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ec/perf_mod.py b/test/ec/perf_mod.py
index f77c6bb..793e431 100755
--- a/test/ec/perf_mod.py
+++ b/test/ec/perf_mod.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
import click
-from pyecsca.ec.mod import Mod, has_gmp
+from pyecsca.ec.mod import Mod, has_gmp, has_flint
from pyecsca.misc.cfg import TemporaryConfig
from test.utils import Profiler
@@ -12,7 +12,7 @@ from test.utils import Profiler
"-m",
"--mod",
type=click.Choice(("python", "gmp", "flint")),
- default="gmp" if has_gmp else "python",
+ default="flint" if has_flint else "gmp" if has_gmp else "python",
)
@click.option("-o", "--operations", type=click.INT, default=100000)
@click.option(