Add memory-related benchmarks

This commit is contained in:
Yuke Peng 2024-07-18 15:23:04 +08:00 committed by Tate, Hongliang Tian
parent 922176641c
commit 0021f3014c
9 changed files with 84 additions and 0 deletions

View File

@ -0,0 +1,5 @@
{
"alert_threshold": "125%",
"pattern": "134.22",
"field": "2"
}

View 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"
}
]

View 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

View File

@ -0,0 +1,5 @@
{
"alert_threshold": "125%",
"pattern": "268.44",
"field": "2"
}

View 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"
}
]

View 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

View File

@ -0,0 +1,5 @@
{
"alert_threshold": "125%",
"pattern": "268.44",
"field": "2"
}

View 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"
}
]

View 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