mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-22 17:03:23 +00:00
Reorganize the structure of benchmarks
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
7a13c0dff6
commit
32bfa76703
8
test/benchmark/lmbench/tcp_loopback_http_bw/config.json
Normal file
8
test/benchmark/lmbench/tcp_loopback_http_bw/config.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"alert_threshold": "125%",
|
||||
"alert_tool": "customBiggerIsBetter",
|
||||
"search_pattern": "Avg xfer: ",
|
||||
"result_index": "8",
|
||||
"description": "bw_http",
|
||||
"title": "[HTTP] The bandwidth"
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"name": "Average simple HTTP transaction bandwidth on Linux",
|
||||
"unit": "MB/s",
|
||||
"value": 0,
|
||||
"extra": "linux_result"
|
||||
},
|
||||
{
|
||||
"name": "Average simple HTTP transaction bandwidth on Asterinas",
|
||||
"unit": "MB/s",
|
||||
"value": 0,
|
||||
"extra": "aster_result"
|
||||
}
|
||||
]
|
13
test/benchmark/lmbench/tcp_loopback_http_bw/run.sh
Normal file
13
test/benchmark/lmbench/tcp_loopback_http_bw/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