aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/sca
diff options
context:
space:
mode:
authorJ08nY2024-07-16 16:33:26 +0200
committerJ08nY2024-07-16 16:33:26 +0200
commiteea57d6019d7b13a3c9e01cf1ecb11b132e5e291 (patch)
treea89f8e3f5ff6aee78e8bfb7c3617b382c8f9bdf8 /test/sca
parentd6fc0ada881aad78543124bd2ffb63ce187b4e0f (diff)
downloadpyecsca-eea57d6019d7b13a3c9e01cf1ecb11b132e5e291.tar.gz
pyecsca-eea57d6019d7b13a3c9e01cf1ecb11b132e5e291.tar.zst
pyecsca-eea57d6019d7b13a3c9e01cf1ecb11b132e5e291.zip
Better print in perf.
Diffstat (limited to 'test/sca')
-rw-r--r--test/sca/perf_combine.py8
-rw-r--r--test/sca/perf_zvp.py9
2 files changed, 15 insertions, 2 deletions
diff --git a/test/sca/perf_combine.py b/test/sca/perf_combine.py
index bd5db59..8ac274c 100644
--- a/test/sca/perf_combine.py
+++ b/test/sca/perf_combine.py
@@ -16,7 +16,13 @@ from pyecsca.sca import (
@click.command()
-@click.option("-p", "--profiler", type=click.Choice(("py", "c", "raw")), default="py")
+@click.option(
+ "-p",
+ "--profiler",
+ type=click.Choice(("py", "c", "raw")),
+ default="py",
+ envvar="PROF",
+)
@click.option("-o", "--operations", type=click.INT, default=100)
@click.option(
"-d",
diff --git a/test/sca/perf_zvp.py b/test/sca/perf_zvp.py
index 7a04dd6..34090df 100644
--- a/test/sca/perf_zvp.py
+++ b/test/sca/perf_zvp.py
@@ -11,12 +11,19 @@ from test.utils import Profiler
@click.command()
-@click.option("-p", "--profiler", type=click.Choice(("py", "c", "raw")), default="py")
+@click.option(
+ "-p",
+ "--profiler",
+ type=click.Choice(("py", "c", "raw")),
+ default="py",
+ envvar="PROF",
+)
@click.option(
"-m",
"--mod",
type=click.Choice(("python", "gmp", "flint")),
default="flint" if has_flint else "gmp" if has_gmp else "python",
+ envvar="MOD",
)
@click.option("-o", "--operations", type=click.INT, default=1)
@click.option(