mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-18 12:06:43 +00:00
Add memory-related benchmarks
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
922176641c
commit
0021f3014c
5
test/benchmark/lmbench-mem-fcp/config.json
Normal file
5
test/benchmark/lmbench-mem-fcp/config.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"alert_threshold": "125%",
|
||||
"pattern": "134.22",
|
||||
"field": "2"
|
||||
}
|
14
test/benchmark/lmbench-mem-fcp/result_template.json
Normal file
14
test/benchmark/lmbench-mem-fcp/result_template.json
Normal file
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"name": "Average memory copy bandwidth on Linux",
|
||||
"unit": "MB/s",
|
||||
"value": 0,
|
||||
"extra": "linux_avg"
|
||||
},
|
||||
{
|
||||
"name": "Average memory copy bandwidth on Asterinas",
|
||||
"unit": "MB/s",
|
||||
"value": 0,
|
||||
"extra": "aster_avg"
|
||||
}
|
||||
]
|
9
test/benchmark/lmbench-mem-fcp/run.sh
Normal file
9
test/benchmark/lmbench-mem-fcp/run.sh
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
set -e
|
||||
|
||||
echo "*** Running the LMbench memory-copy bandwidth test ***"
|
||||
|
||||
/benchmark/bin/lmbench/bw_mem -P 1 128m fcp
|
5
test/benchmark/lmbench-mem-frd/config.json
Normal file
5
test/benchmark/lmbench-mem-frd/config.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"alert_threshold": "125%",
|
||||
"pattern": "268.44",
|
||||
"field": "2"
|
||||
}
|
14
test/benchmark/lmbench-mem-frd/result_template.json
Normal file
14
test/benchmark/lmbench-mem-frd/result_template.json
Normal file
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"name": "Average memory read bandwidth on Linux",
|
||||
"unit": "MB/s",
|
||||
"value": 0,
|
||||
"extra": "linux_avg"
|
||||
},
|
||||
{
|
||||
"name": "Average memory read bandwidth on Asterinas",
|
||||
"unit": "MB/s",
|
||||
"value": 0,
|
||||
"extra": "aster_avg"
|
||||
}
|
||||
]
|
9
test/benchmark/lmbench-mem-frd/run.sh
Normal file
9
test/benchmark/lmbench-mem-frd/run.sh
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
set -e
|
||||
|
||||
echo "*** Running the LMbench memory-read bandwidth test ***"
|
||||
|
||||
/benchmark/bin/lmbench/bw_mem -P 1 256m frd
|
5
test/benchmark/lmbench-mem-fwr/config.json
Normal file
5
test/benchmark/lmbench-mem-fwr/config.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"alert_threshold": "125%",
|
||||
"pattern": "268.44",
|
||||
"field": "2"
|
||||
}
|
14
test/benchmark/lmbench-mem-fwr/result_template.json
Normal file
14
test/benchmark/lmbench-mem-fwr/result_template.json
Normal file
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"name": "Average memory write bandwidth on Linux",
|
||||
"unit": "MB/s",
|
||||
"value": 0,
|
||||
"extra": "linux_avg"
|
||||
},
|
||||
{
|
||||
"name": "Average memory write bandwidth on Asterinas",
|
||||
"unit": "MB/s",
|
||||
"value": 0,
|
||||
"extra": "aster_avg"
|
||||
}
|
||||
]
|
9
test/benchmark/lmbench-mem-fwr/run.sh
Normal file
9
test/benchmark/lmbench-mem-fwr/run.sh
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
set -e
|
||||
|
||||
echo "*** Running the LMbench memory-write bandwidth test ***"
|
||||
|
||||
/benchmark/bin/lmbench/bw_mem -P 1 256m fwr
|
Reference in New Issue
Block a user