Skip to content

Commit

Permalink
tests: disable timeslicing on app_kernel
Browse files Browse the repository at this point in the history
Updates the app_kernel benchmark so that its default configuration
does not enable timeslicing. As it is still valuable to know what
kind of performance overhead is incurred by enabling timeslicing,
new test configurations have been added.

Signed-off-by: Peter Mitsis <[email protected]>
  • Loading branch information
peter-mitsis authored and carlescufi committed Dec 18, 2023
1 parent d845982 commit 4e37071
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/benchmarks/app_kernel/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ CONFIG_PIPES=y

CONFIG_APPLICATION_DEFINED_SYSCALL=y
CONFIG_TIMING_FUNCTIONS=y

# Disable time slicing
CONFIG_TIMESLICING=n
3 changes: 3 additions & 0 deletions tests/benchmarks/app_kernel/prj_user.conf
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ CONFIG_PIPES=y
CONFIG_APPLICATION_DEFINED_SYSCALL=y
CONFIG_TIMING_FUNCTIONS=y
CONFIG_USERSPACE=y

# Disable time slicing
CONFIG_TIMESLICING=n
14 changes: 14 additions & 0 deletions tests/benchmarks/app_kernel/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,17 @@ tests:
extra_configs:
- CONFIG_OBJ_CORE=y
- CONFIG_OBJ_CORE_STATS=y
benchmark.kernel.application.timeslicing:
integration_platforms:
- mps2_an385
- qemu_x86
extra_configs:
- CONFIG_TIMESLICING=y
benchmark.kernel.application.user.timeslicing:
extra_args: CONF_FILE=prj_user.conf
filter: CONFIG_ARCH_HAS_USERSPACE
integration_platforms:
- mps2_an385
- qemu_x86
extra_configs:
- CONFIG_TIMESLICING=y

0 comments on commit 4e37071

Please sign in to comment.