Skip to content

Commit

Permalink
tests/periph_gpio: reduce benchmark iterations
Browse files Browse the repository at this point in the history
Our MCU's are predictable enough that 100k iterations should suffice.
  • Loading branch information
kaspar030 committed Jul 29, 2020
1 parent 2f6185e commit 07c70a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/periph_gpio/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include "benchmark.h"
#include "periph/gpio.h"

#define BENCH_RUNS_DEFAULT (1000UL * 1000)
#define BENCH_RUNS_DEFAULT (1000UL * 100)

#ifdef MODULE_PERIPH_GPIO_IRQ
static void cb(void *arg)
Expand Down
4 changes: 1 addition & 3 deletions tests/periph_gpio/tests/02-bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
from testrunner import run


# On slow platforms, like AVR, this test can take some time to complete.
TIMEOUT = 30
# Allow setting a specific port to test
PORT_UNDER_TEST = int(os.environ.get('PORT_UNDER_TEST') or 0)

Expand All @@ -37,4 +35,4 @@ def testfunc(child):


if __name__ == "__main__":
sys.exit(run(testfunc, timeout=TIMEOUT))
sys.exit(run(testfunc))

0 comments on commit 07c70a9

Please sign in to comment.