mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-23 09:23:25 +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_lat/config.json
Normal file
8
test/benchmark/lmbench/tcp_loopback_lat/config.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"alert_threshold": "125%",
|
||||
"alert_tool": "customSmallerIsBetter",
|
||||
"search_pattern": "TCP latency using 127.0.0.1:",
|
||||
"result_index": "5",
|
||||
"description": "lat_tcp",
|
||||
"title": "[TCP sockets] The latency of write+read"
|
||||
}
|
14
test/benchmark/lmbench/tcp_loopback_lat/result_template.json
Normal file
14
test/benchmark/lmbench/tcp_loopback_lat/result_template.json
Normal file
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"name": "Average TCP latency on Linux",
|
||||
"unit": "µs",
|
||||
"value": 0,
|
||||
"extra": "linux_result"
|
||||
},
|
||||
{
|
||||
"name": "Average TCP latency on Asterinas",
|
||||
"unit": "µs",
|
||||
"value": 0,
|
||||
"extra": "aster_result"
|
||||
}
|
||||
]
|
11
test/benchmark/lmbench/tcp_loopback_lat/run.sh
Normal file
11
test/benchmark/lmbench/tcp_loopback_lat/run.sh
Normal file
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
set -e
|
||||
|
||||
echo "*** Running lmbench TCP latency test ***"
|
||||
|
||||
/benchmark/bin/lmbench/lat_tcp -s
|
||||
/benchmark/bin/lmbench/lat_tcp -P 1 127.0.0.1
|
||||
/benchmark/bin/lmbench/lat_tcp -S 127.0.0.1
|
Reference in New Issue
Block a user