mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-24 18:03:25 +00:00
Add lmbench HTTP latency test
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
936da1d6df
commit
9fec6ce95a
1
.github/workflows/benchmark_asterinas.yml
vendored
1
.github/workflows/benchmark_asterinas.yml
vendored
@ -56,6 +56,7 @@ jobs:
|
|||||||
- lmbench-semaphore
|
- lmbench-semaphore
|
||||||
# Network-related benchmark
|
# Network-related benchmark
|
||||||
- lmbench-select-tcp
|
- lmbench-select-tcp
|
||||||
|
- lmbench-http-bandwidth
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
container:
|
container:
|
||||||
|
7
test/benchmark/lmbench-http-bandwidth/config.json
Normal file
7
test/benchmark/lmbench-http-bandwidth/config.json
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"alert_threshold": "125%",
|
||||||
|
"alert_tool": "customBiggerIsBetter",
|
||||||
|
"search_pattern": "Avg xfer: ",
|
||||||
|
"result_index": "8",
|
||||||
|
"description": "The bandwidth of simple HTTP transaction with 64MB file."
|
||||||
|
}
|
14
test/benchmark/lmbench-http-bandwidth/result_template.json
Normal file
14
test/benchmark/lmbench-http-bandwidth/result_template.json
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"name": "Average simple HTTP transaction bandwidth on Linux",
|
||||||
|
"unit": "MB/s",
|
||||||
|
"value": 0,
|
||||||
|
"extra": "linux_avg"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Average simple HTTP transaction bandwidth on Asterinas",
|
||||||
|
"unit": "MB/s",
|
||||||
|
"value": 0,
|
||||||
|
"extra": "aster_avg"
|
||||||
|
}
|
||||||
|
]
|
13
test/benchmark/lmbench-http-bandwidth/run.sh
Normal file
13
test/benchmark/lmbench-http-bandwidth/run.sh
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
echo "*** Running lmbench HTTP latency test ***"
|
||||||
|
|
||||||
|
dd if=/dev/zero of=test_file bs=1M count=64
|
||||||
|
echo "test_file" > file_list
|
||||||
|
/benchmark/bin/lmbench/lmhttp &
|
||||||
|
/benchmark/bin/lmbench/lat_http 127.0.0.1 < file_list
|
||||||
|
/benchmark/bin/lmbench/lat_http -S 127.0.0.1
|
Reference in New Issue
Block a user