mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-08 21:06:48 +00:00
Add lmbench mmap bandwidth test
This commit is contained in:
parent
46d45de37a
commit
9e2956b4a3
1
.github/workflows/benchmark_asterinas.yml
vendored
1
.github/workflows/benchmark_asterinas.yml
vendored
@ -45,6 +45,7 @@ jobs:
|
||||
- lmbench-fs-create-delete-files-10k
|
||||
# Mmap-related benchmarks
|
||||
- lmbench-pagefault
|
||||
- lmbench-mmap-bandwidth
|
||||
# Semaphore benchmark
|
||||
- lmbench-semaphore
|
||||
fail-fast: false
|
||||
|
7
test/benchmark/lmbench-mmap-bandwidth/config.json
Normal file
7
test/benchmark/lmbench-mmap-bandwidth/config.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"alert_threshold": "125%",
|
||||
"alert_tool": "customBiggerIsBetter",
|
||||
"search_pattern": "268.44",
|
||||
"result_index": "2",
|
||||
"description": "The bandwidth of mmap on a single processor."
|
||||
}
|
14
test/benchmark/lmbench-mmap-bandwidth/result_template.json
Normal file
14
test/benchmark/lmbench-mmap-bandwidth/result_template.json
Normal file
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"name": "Average mmap bandwidth on Linux",
|
||||
"unit": "MB/s",
|
||||
"value": 0,
|
||||
"extra": "linux_avg"
|
||||
},
|
||||
{
|
||||
"name": "Average mmap bandwidth on Asterinas",
|
||||
"unit": "MB/s",
|
||||
"value": 0,
|
||||
"extra": "aster_avg"
|
||||
}
|
||||
]
|
10
test/benchmark/lmbench-mmap-bandwidth/run.sh
Normal file
10
test/benchmark/lmbench-mmap-bandwidth/run.sh
Normal file
@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
set -e
|
||||
|
||||
echo "*** Running the LMbench mmap bandwidth test ***"
|
||||
|
||||
dd if=/dev/zero of=/ext2/test_file bs=1M count=256
|
||||
/benchmark/bin/lmbench/bw_mmap_rd 256m mmap_only /ext2/test_file
|
Loading…
x
Reference in New Issue
Block a user