1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

tests/periph_gpio: reduce benchmark iterations

Our MCU's are predictable enough that 100k iterations should suffice.
This commit is contained in:
Kaspar Schleiser 2020-07-28 16:08:02 +02:00
parent 2f6185ee97
commit 07c70a9cfb
2 changed files with 2 additions and 4 deletions

View File

@ -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)

View File

@ -11,8 +11,6 @@ import os
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)
@ -37,4 +35,4 @@ def testfunc(child):
if __name__ == "__main__":
sys.exit(run(testfunc, timeout=TIMEOUT))
sys.exit(run(testfunc))