diff options
| author | Angus Gratton <angus@redyak.com.au> | 2025-03-25 09:53:44 +1100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2025-07-18 00:11:44 +1000 |
| commit | d07f103d68d8bb1b65cba047b9bef093b9375ebd (patch) | |
| tree | a50480b92b7db4aee68b32e085ba71b5dee0e5ba | |
| parent | 0cf1e7c0598c5daee6d63c8b0dff0d9d67899fec (diff) | |
tests: Skip bm_pidigits perf test if no arbitrary precision int support.
The other performance tests run and pass with only 64-bit big integer
support.
This work was funded through GitHub Sponsors.
Signed-off-by: Angus Gratton <angus@redyak.com.au>
| -rw-r--r-- | tests/perf_bench/bm_pidigits.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/perf_bench/bm_pidigits.py b/tests/perf_bench/bm_pidigits.py index bdaa73cec..c935f103c 100644 --- a/tests/perf_bench/bm_pidigits.py +++ b/tests/perf_bench/bm_pidigits.py @@ -5,6 +5,12 @@ # This benchmark stresses big integer arithmetic. # Adapted from code on: http://benchmarksgame.alioth.debian.org/ +try: + int("0x10000000000000000", 16) +except: + print("SKIP") # No support for >64-bit integers + raise SystemExit + def compose(a, b): aq, ar, as_, at = a |
