1sample:
2  name: Zbus Benchmark
3tests:
4  sample.zbus.benchmark_async:
5    tags: zbus
6    min_ram: 16
7    filter: CONFIG_SYS_CLOCK_EXISTS and not (CONFIG_ARCH_POSIX and not CONFIG_BOARD_NATIVE_SIM)
8    harness: console
9    harness_config:
10      type: multi_line
11      ordered: true
12      regex:
13        - "I: Benchmark 1 to 8 using LISTENERS to transmit with message size: 256 bytes"
14        - "I: Bytes sent = 262144, received = 262144"
15        - "I: Average data rate: (\\d+).(\\d+)MB/s"
16        - "I: Duration: (\\d+).(\\d+)s"
17        - "@(.*)"
18    extra_configs:
19      - CONFIG_BM_ONE_TO=8
20      - CONFIG_BM_MESSAGE_SIZE=256
21      - CONFIG_BM_LISTENERS=y
22      - CONFIG_IDLE_STACK_SIZE=1024
23    integration_platforms:
24      - qemu_x86
25  sample.zbus.benchmark_async_msg_sub:
26    tags: zbus
27    min_ram: 16
28    filter: CONFIG_SYS_CLOCK_EXISTS and not (CONFIG_ARCH_POSIX and not CONFIG_BOARD_NATIVE_SIM)
29    harness: console
30    harness_config:
31      type: multi_line
32      ordered: true
33      regex:
34        - "I: Benchmark 1 to 8 using MSG_SUBSCRIBERS to transmit with message size: 256 bytes"
35        - "I: Bytes sent = 262144, received = 262144"
36        - "I: Average data rate: (\\d+).(\\d+)MB/s"
37        - "I: Duration: (\\d+).(\\d+)s"
38        - "@(.*)"
39    extra_configs:
40      - CONFIG_BM_ONE_TO=8
41      - CONFIG_BM_MESSAGE_SIZE=256
42      - CONFIG_BM_MSG_SUBSCRIBERS=y
43      - CONFIG_IDLE_STACK_SIZE=1024
44    integration_platforms:
45      - qemu_x86
46  sample.zbus.benchmark_sync:
47    tags: zbus
48    min_ram: 16
49    filter: CONFIG_SYS_CLOCK_EXISTS and not (CONFIG_ARCH_POSIX and not CONFIG_BOARD_NATIVE_SIM)
50    harness: console
51    harness_config:
52      type: multi_line
53      ordered: true
54      regex:
55        - "I: Benchmark 1 to 8 using SUBSCRIBERS to transmit with message size: 256 bytes"
56        - "I: Bytes sent = 262144, received = 262144"
57        - "I: Average data rate: (\\d+).(\\d+)MB/s"
58        - "I: Duration: (\\d+).(\\d+)s"
59        - "@(.*)"
60    extra_configs:
61      - CONFIG_BM_ONE_TO=8
62      - CONFIG_BM_MESSAGE_SIZE=256
63      - CONFIG_BM_SUBSCRIBERS=y
64      - CONFIG_IDLE_STACK_SIZE=1024
65    integration_platforms:
66      - qemu_x86
67