Skip to content

Commit

Permalink
tests/perf_bench: Add some configurations for N=32, M=10.
Browse files Browse the repository at this point in the history
For STM32L072 and similar, very low end targets.

The other perf_bench tests run out of memory, crash, or fail on
prerequisite features.

Signed-off-by: Angus Gratton <gus@projectgus.com>
  • Loading branch information
projectgus authored and dpgeorge committed Jun 28, 2022
1 parent e76d88b commit 5568c32
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions tests/perf_bench/bm_fannkuch.py
Expand Up @@ -51,6 +51,7 @@ def fannkuch(n):
# Benchmark interface

bm_params = {
(32, 10): (3,),
(50, 10): (5,),
(100, 10): (6,),
(500, 10): (7,),
Expand Down
2 changes: 1 addition & 1 deletion tests/perf_bench/bm_nqueens.py
Expand Up @@ -46,7 +46,7 @@ def n_queens(queen_count):
# Benchmark interface

bm_params = {
(50, 25): (1, 5),
(32, 10): (1, 5),
(100, 25): (1, 6),
(1000, 100): (1, 7),
(5000, 100): (1, 8),
Expand Down
1 change: 1 addition & 0 deletions tests/perf_bench/bm_pidigits.py
Expand Up @@ -36,6 +36,7 @@ def gen_pi_digits(n):
# Benchmark interface

bm_params = {
(32, 10): (1, 20),
(50, 25): (1, 35),
(100, 100): (1, 65),
(1000, 1000): (2, 250),
Expand Down
2 changes: 1 addition & 1 deletion tests/perf_bench/core_import_mpy_multi.py
Expand Up @@ -73,7 +73,7 @@ def test(r):
# Benchmark interface

bm_params = {
(100, 10): (50,),
(32, 10): (50,),
(1000, 10): (500,),
(5000, 10): (5000,),
}
Expand Down
2 changes: 1 addition & 1 deletion tests/perf_bench/core_qstr.py
Expand Up @@ -10,7 +10,7 @@ def test(r):
# Benchmark interface

bm_params = {
(100, 10): (400,),
(32, 10): (400,),
(1000, 10): (4000,),
(5000, 10): (40000,),
}
Expand Down
4 changes: 3 additions & 1 deletion tests/run-perfbench.py
Expand Up @@ -260,7 +260,9 @@ def main():
)
cmd_parser.add_argument("--via-mpy", action="store_true", help="compile code to .mpy first")
cmd_parser.add_argument("--mpy-cross-flags", default="", help="flags to pass to mpy-cross")
cmd_parser.add_argument("N", nargs=1, help="N parameter (approximate target CPU frequency)")
cmd_parser.add_argument(
"N", nargs=1, help="N parameter (approximate target CPU frequency in MHz)"
)
cmd_parser.add_argument("M", nargs=1, help="M parameter (approximate target heap in kbytes)")
cmd_parser.add_argument("files", nargs="*", help="input test files")
args = cmd_parser.parse_args()
Expand Down

0 comments on commit 5568c32

Please sign in to comment.