mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-27 19:33:23 +00:00
Use summary.json to controll the overview charts of benchmarks
This commit is contained in:
@ -83,8 +83,7 @@ To add a new benchmark to the Asternias Continuous Integration (CI) system, foll
|
||||
"search_pattern": "Simple syscall:",
|
||||
"result_index": "3",
|
||||
"description": "lat_syscall null",
|
||||
"title": "[Process] The cost of getpid",
|
||||
"show_in_overview": "false"
|
||||
"title": "[Process] The cost of getpid"
|
||||
}
|
||||
```
|
||||
|
||||
@ -94,10 +93,21 @@ To add a new benchmark to the Asternias Continuous Integration (CI) system, foll
|
||||
- `result_index`: Specify the index of the result in the extracted output. This field is aligned with `awk`'s action.
|
||||
- `description`: Provide a brief description of the benchmark.
|
||||
- `title`: Set the title of the benchmark.
|
||||
- `show_in_overview`: Default is true. Set to `false` to avoid displaying the benchmark in the overview results.
|
||||
|
||||
For example, if the benchmark output is "Syscall average latency: 1000 ns", the `search_pattern` is "Syscall average latency:", and the `result_index` is "4". `awk` will extract "1000" as the benchmark result. See the `awk` [manual](https://www.gnu.org/software/gawk/manual/gawk.html#Getting-Started) for more information.
|
||||
|
||||
- **summary.json:**
|
||||
```json
|
||||
{
|
||||
"benchmarks": [
|
||||
"cpu_lat",
|
||||
"thread_lat"
|
||||
]
|
||||
}
|
||||
```
|
||||
- List all the benchmarks that are included in the benchmark overview. This file is used to generate the overview chart of the benchmark results.
|
||||
- The benchmark does not appear in the overview chart if it is not listed in this file. But it will still be included in the detailed benchmark results.
|
||||
- The sequence of the benchmarks in this file will be the same as the sequence in the overview chart.
|
||||
|
||||
- **result_template.json:**
|
||||
```json
|
||||
|
@ -4,6 +4,5 @@
|
||||
"search_pattern": "Semaphore latency:",
|
||||
"result_index": "3",
|
||||
"description": "lat_sem",
|
||||
"title": "[Semaphores] The cost of semop",
|
||||
"show_in_overview": "false"
|
||||
"title": "[Semaphores] The cost of semop"
|
||||
}
|
41
test/benchmark/lmbench/summary.json
Normal file
41
test/benchmark/lmbench/summary.json
Normal file
@ -0,0 +1,41 @@
|
||||
{
|
||||
"benchmarks": [
|
||||
"mem_read_bw",
|
||||
"mem_write_bw",
|
||||
"mem_copy_bw",
|
||||
"mem_pagefault_lat",
|
||||
"mem_mmap_bw",
|
||||
"mem_mmap_lat",
|
||||
"process_getppid_lat",
|
||||
"process_ctx_lat",
|
||||
"process_fork_lat",
|
||||
"process_exec_lat",
|
||||
"process_shell_lat",
|
||||
"signal_install_lat",
|
||||
"signal_catch_lat",
|
||||
"signal_prot_lat",
|
||||
"pipe_lat",
|
||||
"pipe_bw",
|
||||
"fifo_lat",
|
||||
"unix_lat",
|
||||
"unix_bw",
|
||||
"unix_connect_lat",
|
||||
"vfs_open_lat",
|
||||
"vfs_read_lat",
|
||||
"vfs_write_lat",
|
||||
"vfs_stat_lat",
|
||||
"vfs_fstat_lat",
|
||||
"vfs_fcntl_lat",
|
||||
"vfs_read_pagecache_bw",
|
||||
"vfs_select_lat",
|
||||
"ramfs_create_delete_files_0k_ops",
|
||||
"ramfs_create_delete_files_10k_ops",
|
||||
"ext2_copy_files_bw",
|
||||
"tcp_loopback_bw",
|
||||
"tcp_loopback_lat",
|
||||
"tcp_loopback_connect_lat",
|
||||
"tcp_loopback_select_lat",
|
||||
"tcp_loopback_http_bw",
|
||||
"udp_loopback_lat"
|
||||
]
|
||||
}
|
6
test/benchmark/sysbench/summary.json
Normal file
6
test/benchmark/sysbench/summary.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"benchmarks": [
|
||||
"cpu_lat",
|
||||
"thread_lat"
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user