mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-29 16:13:27 +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/ext2_copy_files_bw/config.json
Normal file
8
test/benchmark/lmbench/ext2_copy_files_bw/config.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"alert_threshold": "125%",
|
||||
"alert_tool": "customBiggerIsBetter",
|
||||
"search_pattern": "lmdd result:",
|
||||
"result_index": "8",
|
||||
"description": "lmdd",
|
||||
"title": "[EXT2] The bandwidth of copying data between files"
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"name": "Average file copy bandwidth on Linux",
|
||||
"unit": "MB/s",
|
||||
"value": 0,
|
||||
"extra": "linux_result"
|
||||
},
|
||||
{
|
||||
"name": "Average file copy bandwidth on Asterinas",
|
||||
"unit": "MB/s",
|
||||
"value": 0,
|
||||
"extra": "aster_result"
|
||||
}
|
||||
]
|
9
test/benchmark/lmbench/ext2_copy_files_bw/run.sh
Normal file
9
test/benchmark/lmbench/ext2_copy_files_bw/run.sh
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
set -e
|
||||
|
||||
echo "*** Running the LMbench lmdd test ***"
|
||||
|
||||
echo -n "lmdd result: " & /benchmark/bin/lmbench/lmdd if=/dev/zero of=/ext2/test_file bs=1M count=512
|
8
test/benchmark/lmbench/fifo_lat/config.json
Normal file
8
test/benchmark/lmbench/fifo_lat/config.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"alert_threshold": "125%",
|
||||
"alert_tool": "customSmallerIsBetter",
|
||||
"search_pattern": "Fifo latency",
|
||||
"result_index": "3",
|
||||
"description": "lat_fifo",
|
||||
"title": "[FIFO] The cost of write+read (1B)"
|
||||
}
|
14
test/benchmark/lmbench/fifo_lat/result_template.json
Normal file
14
test/benchmark/lmbench/fifo_lat/result_template.json
Normal file
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"name": "Average fifo latency on Linux",
|
||||
"unit": "µs",
|
||||
"value": 0,
|
||||
"extra": "linux_result"
|
||||
},
|
||||
{
|
||||
"name": "Average fifo latency on Asterinas",
|
||||
"unit": "µs",
|
||||
"value": 0,
|
||||
"extra": "aster_result"
|
||||
}
|
||||
]
|
9
test/benchmark/lmbench/fifo_lat/run.sh
Normal file
9
test/benchmark/lmbench/fifo_lat/run.sh
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
set -e
|
||||
|
||||
echo "*** Running the LMbench fifo latency test ***"
|
||||
|
||||
/benchmark/bin/lmbench/lat_fifo -P 1
|
8
test/benchmark/lmbench/mem_copy_bw/config.json
Normal file
8
test/benchmark/lmbench/mem_copy_bw/config.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"alert_threshold": "125%",
|
||||
"alert_tool": "customBiggerIsBetter",
|
||||
"search_pattern": "536.87",
|
||||
"result_index": "2",
|
||||
"description": "bw_mem fcp",
|
||||
"title": "[Memory] The bandwidth of copying integers"
|
||||
}
|
14
test/benchmark/lmbench/mem_copy_bw/result_template.json
Normal file
14
test/benchmark/lmbench/mem_copy_bw/result_template.json
Normal file
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"name": "Average memory copy bandwidth on Linux",
|
||||
"unit": "MB/s",
|
||||
"value": 0,
|
||||
"extra": "linux_result"
|
||||
},
|
||||
{
|
||||
"name": "Average memory copy bandwidth on Asterinas",
|
||||
"unit": "MB/s",
|
||||
"value": 0,
|
||||
"extra": "aster_result"
|
||||
}
|
||||
]
|
9
test/benchmark/lmbench/mem_copy_bw/run.sh
Normal file
9
test/benchmark/lmbench/mem_copy_bw/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 -N 50 512m fcp
|
8
test/benchmark/lmbench/mem_mmap_bw/config.json
Normal file
8
test/benchmark/lmbench/mem_mmap_bw/config.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"alert_threshold": "125%",
|
||||
"alert_tool": "customBiggerIsBetter",
|
||||
"search_pattern": "268.44",
|
||||
"result_index": "2",
|
||||
"description": "bw_mmap",
|
||||
"title": "[Memory] The bandwidth of mmap"
|
||||
}
|
14
test/benchmark/lmbench/mem_mmap_bw/result_template.json
Normal file
14
test/benchmark/lmbench/mem_mmap_bw/result_template.json
Normal file
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"name": "Average mmap bandwidth on Linux",
|
||||
"unit": "MB/s",
|
||||
"value": 0,
|
||||
"extra": "linux_result"
|
||||
},
|
||||
{
|
||||
"name": "Average mmap bandwidth on Asterinas",
|
||||
"unit": "MB/s",
|
||||
"value": 0,
|
||||
"extra": "aster_result"
|
||||
}
|
||||
]
|
10
test/benchmark/lmbench/mem_mmap_bw/run.sh
Normal file
10
test/benchmark/lmbench/mem_mmap_bw/run.sh
Normal file
@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
set -e
|
||||
|
||||
echo "*** Running the LMbench mmap bandwidth test ***"
|
||||
|
||||
dd if=/dev/zero of=/ext2/test_file bs=1M count=256
|
||||
/benchmark/bin/lmbench/bw_mmap_rd 256m mmap_only /ext2/test_file
|
8
test/benchmark/lmbench/mem_mmap_lat/config.json
Normal file
8
test/benchmark/lmbench/mem_mmap_lat/config.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"alert_threshold": "125%",
|
||||
"alert_tool": "customSmallerIsBetter",
|
||||
"search_pattern": "4.194304",
|
||||
"result_index": "2",
|
||||
"description": "lat_mmap",
|
||||
"title": "[Memory] The cost of mmap+unmap"
|
||||
}
|
14
test/benchmark/lmbench/mem_mmap_lat/result_template.json
Normal file
14
test/benchmark/lmbench/mem_mmap_lat/result_template.json
Normal file
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"name": "Average mmap latency on Linux",
|
||||
"unit": "µs",
|
||||
"value": 0,
|
||||
"extra": "linux_result"
|
||||
},
|
||||
{
|
||||
"name": "Average mmap latency on Asterinas",
|
||||
"unit": "µs",
|
||||
"value": 0,
|
||||
"extra": "aster_result"
|
||||
}
|
||||
]
|
10
test/benchmark/lmbench/mem_mmap_lat/run.sh
Normal file
10
test/benchmark/lmbench/mem_mmap_lat/run.sh
Normal file
@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
set -e
|
||||
|
||||
echo "*** Running the LMbench mmap latency test ***"
|
||||
|
||||
dd if=/dev/zero of=/ext2/test_file bs=1M count=4
|
||||
/benchmark/bin/lmbench/lat_mmap 4m /ext2/test_file
|
8
test/benchmark/lmbench/mem_pagefault_lat/config.json
Normal file
8
test/benchmark/lmbench/mem_pagefault_lat/config.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"alert_threshold": "125%",
|
||||
"alert_tool": "customSmallerIsBetter",
|
||||
"search_pattern": "Pagefaults on ",
|
||||
"result_index": "4",
|
||||
"description": "lat_pagefault",
|
||||
"title": "[Memory] The cost of page fault handling"
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"name": "Average page fault latency on Linux",
|
||||
"unit": "µs",
|
||||
"value": 0,
|
||||
"extra": "linux_result"
|
||||
},
|
||||
{
|
||||
"name": "Average page fault latency on Asterinas",
|
||||
"unit": "µs",
|
||||
"value": 0,
|
||||
"extra": "aster_result"
|
||||
}
|
||||
]
|
10
test/benchmark/lmbench/mem_pagefault_lat/run.sh
Normal file
10
test/benchmark/lmbench/mem_pagefault_lat/run.sh
Normal file
@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
set -e
|
||||
|
||||
echo "*** Running the LMbench page fault latency test ***"
|
||||
|
||||
dd if=/dev/zero of=/ext2/test_file bs=1M count=4
|
||||
/benchmark/bin/lmbench/lat_pagefault -P 1 /ext2/test_file
|
8
test/benchmark/lmbench/mem_read_bw/config.json
Normal file
8
test/benchmark/lmbench/mem_read_bw/config.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"alert_threshold": "125%",
|
||||
"alert_tool": "customBiggerIsBetter",
|
||||
"search_pattern": "536.87",
|
||||
"result_index": "2",
|
||||
"description": "bw_mem frd",
|
||||
"title": "[Memory] The bandwidth of reading integers"
|
||||
}
|
14
test/benchmark/lmbench/mem_read_bw/result_template.json
Normal file
14
test/benchmark/lmbench/mem_read_bw/result_template.json
Normal file
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"name": "Average memory read bandwidth on Linux",
|
||||
"unit": "MB/s",
|
||||
"value": 0,
|
||||
"extra": "linux_result"
|
||||
},
|
||||
{
|
||||
"name": "Average memory read bandwidth on Asterinas",
|
||||
"unit": "MB/s",
|
||||
"value": 0,
|
||||
"extra": "aster_result"
|
||||
}
|
||||
]
|
9
test/benchmark/lmbench/mem_read_bw/run.sh
Normal file
9
test/benchmark/lmbench/mem_read_bw/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 -N 50 512m frd
|
8
test/benchmark/lmbench/mem_write_bw/config.json
Normal file
8
test/benchmark/lmbench/mem_write_bw/config.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"alert_threshold": "125%",
|
||||
"alert_tool": "customBiggerIsBetter",
|
||||
"search_pattern": "536.87",
|
||||
"result_index": "2",
|
||||
"description": "bw_mem fwr",
|
||||
"title": "[Memory] The bandwidth of writing integers"
|
||||
}
|
14
test/benchmark/lmbench/mem_write_bw/result_template.json
Normal file
14
test/benchmark/lmbench/mem_write_bw/result_template.json
Normal file
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"name": "Average memory write bandwidth on Linux",
|
||||
"unit": "MB/s",
|
||||
"value": 0,
|
||||
"extra": "linux_result"
|
||||
},
|
||||
{
|
||||
"name": "Average memory write bandwidth on Asterinas",
|
||||
"unit": "MB/s",
|
||||
"value": 0,
|
||||
"extra": "aster_result"
|
||||
}
|
||||
]
|
9
test/benchmark/lmbench/mem_write_bw/run.sh
Normal file
9
test/benchmark/lmbench/mem_write_bw/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 -N 50 512m fwr
|
8
test/benchmark/lmbench/pipe_bw/config.json
Normal file
8
test/benchmark/lmbench/pipe_bw/config.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"alert_threshold": "125%",
|
||||
"alert_tool": "customBiggerIsBetter",
|
||||
"search_pattern": "Pipe bandwidth",
|
||||
"result_index": "3",
|
||||
"description": "bw_pipe",
|
||||
"title": "[Pipes] The bandwidth"
|
||||
}
|
14
test/benchmark/lmbench/pipe_bw/result_template.json
Normal file
14
test/benchmark/lmbench/pipe_bw/result_template.json
Normal file
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"name": "Average pipe bandwidth on Linux",
|
||||
"unit": "MB/s",
|
||||
"value": 0,
|
||||
"extra": "linux_result"
|
||||
},
|
||||
{
|
||||
"name": "Average pipe bandwidth on Asterinas",
|
||||
"unit": "MB/s",
|
||||
"value": 0,
|
||||
"extra": "aster_result"
|
||||
}
|
||||
]
|
9
test/benchmark/lmbench/pipe_bw/run.sh
Normal file
9
test/benchmark/lmbench/pipe_bw/run.sh
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
set -e
|
||||
|
||||
echo "*** Running the LMbench pipe bandwidth test ***"
|
||||
|
||||
/benchmark/bin/lmbench/bw_pipe -P 1
|
8
test/benchmark/lmbench/pipe_lat/config.json
Normal file
8
test/benchmark/lmbench/pipe_lat/config.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"alert_threshold": "125%",
|
||||
"alert_tool": "customSmallerIsBetter",
|
||||
"search_pattern": "Pipe latency",
|
||||
"result_index": "3",
|
||||
"description": "lat_pipe",
|
||||
"title": "[Pipes] The cost of write+read (1B)"
|
||||
}
|
14
test/benchmark/lmbench/pipe_lat/result_template.json
Normal file
14
test/benchmark/lmbench/pipe_lat/result_template.json
Normal file
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"name": "Average pipe latency on Linux",
|
||||
"unit": "µs",
|
||||
"value": 0,
|
||||
"extra": "linux_result"
|
||||
},
|
||||
{
|
||||
"name": "Average pipe latency on Asterinas",
|
||||
"unit": "µs",
|
||||
"value": 0,
|
||||
"extra": "aster_result"
|
||||
}
|
||||
]
|
9
test/benchmark/lmbench/pipe_lat/run.sh
Normal file
9
test/benchmark/lmbench/pipe_lat/run.sh
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
set -e
|
||||
|
||||
echo "*** Running the LMbench pipe latency test ***"
|
||||
|
||||
/benchmark/bin/lmbench/lat_pipe -P 1
|
8
test/benchmark/lmbench/process_ctx_lat/config.json
Normal file
8
test/benchmark/lmbench/process_ctx_lat/config.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"alert_threshold": "125%",
|
||||
"alert_tool": "customSmallerIsBetter",
|
||||
"search_pattern": "18 ",
|
||||
"result_index": "2",
|
||||
"description": "lat_ctx 2",
|
||||
"title": "[Process] The cost of context switching"
|
||||
}
|
14
test/benchmark/lmbench/process_ctx_lat/result_template.json
Normal file
14
test/benchmark/lmbench/process_ctx_lat/result_template.json
Normal file
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"name": "Average context switch latency on Linux",
|
||||
"unit": "µs",
|
||||
"value": 0,
|
||||
"extra": "linux_result"
|
||||
},
|
||||
{
|
||||
"name": "Average context switch latency on Asterinas",
|
||||
"unit": "µs",
|
||||
"value": 0,
|
||||
"extra": "aster_result"
|
||||
}
|
||||
]
|
9
test/benchmark/lmbench/process_ctx_lat/run.sh
Normal file
9
test/benchmark/lmbench/process_ctx_lat/run.sh
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
set -e
|
||||
|
||||
echo "*** Running the LMbench context switch latency test ***"
|
||||
|
||||
/benchmark/bin/lmbench/lat_ctx -P 1 18
|
8
test/benchmark/lmbench/process_exec_lat/config.json
Normal file
8
test/benchmark/lmbench/process_exec_lat/config.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"alert_threshold": "125%",
|
||||
"alert_tool": "customSmallerIsBetter",
|
||||
"search_pattern": "Process fork\\+execve",
|
||||
"result_index": "3",
|
||||
"description": "lat_proc exec",
|
||||
"title": "[Process] The cost of fork+exec+exit"
|
||||
}
|
14
test/benchmark/lmbench/process_exec_lat/result_template.json
Normal file
14
test/benchmark/lmbench/process_exec_lat/result_template.json
Normal file
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"name": "Average exec latency on Linux",
|
||||
"unit": "µs",
|
||||
"value": 0,
|
||||
"extra": "linux_result"
|
||||
},
|
||||
{
|
||||
"name": "Average exec latency on Asterinas",
|
||||
"unit": "µs",
|
||||
"value": 0,
|
||||
"extra": "aster_result"
|
||||
}
|
||||
]
|
10
test/benchmark/lmbench/process_exec_lat/run.sh
Normal file
10
test/benchmark/lmbench/process_exec_lat/run.sh
Normal file
@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
set -e
|
||||
|
||||
echo "*** Running the LMbench exec latency test ***"
|
||||
|
||||
cp /benchmark/bin/lmbench/hello /tmp/
|
||||
/benchmark/bin/lmbench/lat_proc -P 1 exec
|
8
test/benchmark/lmbench/process_fork_lat/config.json
Normal file
8
test/benchmark/lmbench/process_fork_lat/config.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"alert_threshold": "125%",
|
||||
"alert_tool": "customSmallerIsBetter",
|
||||
"search_pattern": "Process fork",
|
||||
"result_index": "3",
|
||||
"description": "lat_proc fork",
|
||||
"title": "[Process] The cost of fork+exit"
|
||||
}
|
14
test/benchmark/lmbench/process_fork_lat/result_template.json
Normal file
14
test/benchmark/lmbench/process_fork_lat/result_template.json
Normal file
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"name": "Average Fork latency on Linux",
|
||||
"unit": "µs",
|
||||
"value": 0,
|
||||
"extra": "linux_result"
|
||||
},
|
||||
{
|
||||
"name": "Average Fork latency on Asterinas",
|
||||
"unit": "µs",
|
||||
"value": 0,
|
||||
"extra": "aster_result"
|
||||
}
|
||||
]
|
9
test/benchmark/lmbench/process_fork_lat/run.sh
Normal file
9
test/benchmark/lmbench/process_fork_lat/run.sh
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
set -e
|
||||
|
||||
echo "*** Running lmbench-fork ***"
|
||||
|
||||
/benchmark/bin/lmbench/lat_proc -P 1 fork
|
8
test/benchmark/lmbench/process_getppid_lat/config.json
Normal file
8
test/benchmark/lmbench/process_getppid_lat/config.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"alert_threshold": "125%",
|
||||
"alert_tool": "customSmallerIsBetter",
|
||||
"search_pattern": "Simple syscall:",
|
||||
"result_index": "3",
|
||||
"description": "lat_syscall null",
|
||||
"title": "[Process] The cost of getppid"
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"name": "Average syscall latency on Linux",
|
||||
"unit": "µs",
|
||||
"value": 0,
|
||||
"extra": "linux_result"
|
||||
},
|
||||
{
|
||||
"name": "Average syscall latency on Asterinas",
|
||||
"unit": "µs",
|
||||
"value": 0,
|
||||
"extra": "aster_result"
|
||||
}
|
||||
]
|
9
test/benchmark/lmbench/process_getppid_lat/run.sh
Normal file
9
test/benchmark/lmbench/process_getppid_lat/run.sh
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
set -e
|
||||
|
||||
echo "*** Running lmbench-getpid ***"
|
||||
|
||||
/benchmark/bin/lmbench/lat_syscall -P 1 null
|
8
test/benchmark/lmbench/process_shell_lat/config.json
Normal file
8
test/benchmark/lmbench/process_shell_lat/config.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"alert_threshold": "125%",
|
||||
"alert_tool": "customSmallerIsBetter",
|
||||
"search_pattern": "Process fork\\+\\/bin\\/sh",
|
||||
"result_index": "4",
|
||||
"description": "lat_proc shell",
|
||||
"title": "[Process] The cost of fork+exec+shell+exit"
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"name": "Average shell latency on Linux",
|
||||
"unit": "µs",
|
||||
"value": 0,
|
||||
"extra": "linux_result"
|
||||
},
|
||||
{
|
||||
"name": "Average shell latency on Asterinas",
|
||||
"unit": "µs",
|
||||
"value": 0,
|
||||
"extra": "aster_result"
|
||||
}
|
||||
]
|
10
test/benchmark/lmbench/process_shell_lat/run.sh
Normal file
10
test/benchmark/lmbench/process_shell_lat/run.sh
Normal file
@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
set -e
|
||||
|
||||
echo "*** Running the LMbench shell latency test ***"
|
||||
|
||||
cp /benchmark/bin/lmbench/hello /tmp/
|
||||
/benchmark/bin/lmbench/lat_proc -P 1 shell
|
@ -0,0 +1,8 @@
|
||||
{
|
||||
"alert_threshold": "125%",
|
||||
"alert_tool": "customBiggerIsBetter",
|
||||
"search_pattern": "^0k",
|
||||
"result_index": "2",
|
||||
"description": "lat_fs -s 0k",
|
||||
"title": "[Ramfs] The cost of creating/deleting small files (0KB)"
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"name": "Number of created/deleted files on Linux",
|
||||
"unit": "number",
|
||||
"value": 0,
|
||||
"extra": "linux_result"
|
||||
},
|
||||
{
|
||||
"name": "Number of created/deleted files on Asterinas",
|
||||
"unit": "number",
|
||||
"value": 0,
|
||||
"extra": "aster_result"
|
||||
}
|
||||
]
|
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
set -e
|
||||
|
||||
echo "*** Running the LMbench file system create/delete test ***"
|
||||
|
||||
/benchmark/bin/lmbench/lat_fs -s 0k -P 1
|
@ -0,0 +1,8 @@
|
||||
{
|
||||
"alert_threshold": "125%",
|
||||
"alert_tool": "customBiggerIsBetter",
|
||||
"search_pattern": "10k",
|
||||
"result_index": "2",
|
||||
"description": "lat_fs -s 10K",
|
||||
"title": "[Ramfs] The cost of creating/deleting small files (10KB)"
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"name": "Number of created/deleted files on Linux",
|
||||
"unit": "number",
|
||||
"value": 0,
|
||||
"extra": "linux_result"
|
||||
},
|
||||
{
|
||||
"name": "Number of created/deleted files on Asterinas",
|
||||
"unit": "number",
|
||||
"value": 0,
|
||||
"extra": "aster_result"
|
||||
}
|
||||
]
|
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
set -e
|
||||
|
||||
echo "*** Running the LMbench file system create/delete test ***"
|
||||
|
||||
/benchmark/bin/lmbench/lat_fs -s 10k -P 1
|
8
test/benchmark/lmbench/semaphore_lat/config.json
Normal file
8
test/benchmark/lmbench/semaphore_lat/config.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"alert_threshold": "125%",
|
||||
"alert_tool": "customSmallerIsBetter",
|
||||
"search_pattern": "Semaphore latency:",
|
||||
"result_index": "3",
|
||||
"description": "lat_sem",
|
||||
"title": "[Semaphores] The cost of semop"
|
||||
}
|
14
test/benchmark/lmbench/semaphore_lat/result_template.json
Normal file
14
test/benchmark/lmbench/semaphore_lat/result_template.json
Normal file
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"name": "Average semaphore latency on Linux",
|
||||
"unit": "µs",
|
||||
"value": 0,
|
||||
"extra": "linux_result"
|
||||
},
|
||||
{
|
||||
"name": "Average semaphore latency on Asterinas",
|
||||
"unit": "µs",
|
||||
"value": 0,
|
||||
"extra": "aster_result"
|
||||
}
|
||||
]
|
9
test/benchmark/lmbench/semaphore_lat/run.sh
Normal file
9
test/benchmark/lmbench/semaphore_lat/run.sh
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
set -e
|
||||
|
||||
echo "*** Running the LMbench semaphore latency test ***"
|
||||
|
||||
/benchmark/bin/lmbench/lat_sem -P 1
|
8
test/benchmark/lmbench/signal_catch_lat/config.json
Normal file
8
test/benchmark/lmbench/signal_catch_lat/config.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"alert_threshold": "125%",
|
||||
"alert_tool": "customSmallerIsBetter",
|
||||
"search_pattern": "Signal handler overhead:",
|
||||
"result_index": "4",
|
||||
"description": "lat_sig catch",
|
||||
"title": "[Signals] The cost of catching a signal"
|
||||
}
|
14
test/benchmark/lmbench/signal_catch_lat/result_template.json
Normal file
14
test/benchmark/lmbench/signal_catch_lat/result_template.json
Normal file
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"name": "Average Signal handler overhead on Linux",
|
||||
"unit": "µs",
|
||||
"value": 0,
|
||||
"extra": "linux_result"
|
||||
},
|
||||
{
|
||||
"name": "Average Signal handler overhead on Asterinas",
|
||||
"unit": "µs",
|
||||
"value": 0,
|
||||
"extra": "aster_result"
|
||||
}
|
||||
]
|
9
test/benchmark/lmbench/signal_catch_lat/run.sh
Normal file
9
test/benchmark/lmbench/signal_catch_lat/run.sh
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
set -e
|
||||
|
||||
echo "*** Running lmbench-signal catch ***"
|
||||
|
||||
/benchmark/bin/lmbench/lat_sig -P 1 catch
|
8
test/benchmark/lmbench/signal_install_lat/config.json
Normal file
8
test/benchmark/lmbench/signal_install_lat/config.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"alert_threshold": "125%",
|
||||
"alert_tool": "customSmallerIsBetter",
|
||||
"search_pattern": "Signal handler installation:",
|
||||
"result_index": "4",
|
||||
"description": "lat_sig install",
|
||||
"title": "[Signals] The cost of installing a signal handler"
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"name": "Average Signal handler install latency on Linux",
|
||||
"unit": "µs",
|
||||
"value": 0,
|
||||
"extra": "linux_result"
|
||||
},
|
||||
{
|
||||
"name": "Average Signal handler install latency on Asterinas",
|
||||
"unit": "µs",
|
||||
"value": 0,
|
||||
"extra": "aster_result"
|
||||
}
|
||||
]
|
9
test/benchmark/lmbench/signal_install_lat/run.sh
Normal file
9
test/benchmark/lmbench/signal_install_lat/run.sh
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
set -e
|
||||
|
||||
echo "*** Running lmbench-signal install ***"
|
||||
|
||||
/benchmark/bin/lmbench/lat_sig -P 1 install
|
8
test/benchmark/lmbench/signal_prot_lat/config.json
Normal file
8
test/benchmark/lmbench/signal_prot_lat/config.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"alert_threshold": "125%",
|
||||
"alert_tool": "customSmallerIsBetter",
|
||||
"search_pattern": "Protection fault:",
|
||||
"result_index": "3",
|
||||
"description": "lat_sig prot",
|
||||
"title": "[Signals] The cost of catching a segfault"
|
||||
}
|
14
test/benchmark/lmbench/signal_prot_lat/result_template.json
Normal file
14
test/benchmark/lmbench/signal_prot_lat/result_template.json
Normal file
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"name": "Average protection fault latency on Linux",
|
||||
"unit": "µs",
|
||||
"value": 0,
|
||||
"extra": "linux_result"
|
||||
},
|
||||
{
|
||||
"name": "Average protection fault latency on Asterinas",
|
||||
"unit": "µs",
|
||||
"value": 0,
|
||||
"extra": "aster_result"
|
||||
}
|
||||
]
|
10
test/benchmark/lmbench/signal_prot_lat/run.sh
Normal file
10
test/benchmark/lmbench/signal_prot_lat/run.sh
Normal file
@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
set -e
|
||||
|
||||
echo "*** Running the LMbench protection fault latency test ***"
|
||||
|
||||
dd if=/dev/zero of=/ext2/test_file bs=1M count=256
|
||||
/benchmark/bin/lmbench/lat_sig -N 100 prot /ext2/test_file
|
8
test/benchmark/lmbench/tcp_loopback_bw/config.json
Normal file
8
test/benchmark/lmbench/tcp_loopback_bw/config.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"alert_threshold": "125%",
|
||||
"alert_tool": "customBiggerIsBetter",
|
||||
"search_pattern": "0.004096 ",
|
||||
"result_index": "2",
|
||||
"description": "bw_tcp -l",
|
||||
"title": "[TCP sockets] The bandwidth (localhost)"
|
||||
}
|
14
test/benchmark/lmbench/tcp_loopback_bw/result_template.json
Normal file
14
test/benchmark/lmbench/tcp_loopback_bw/result_template.json
Normal file
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"name": "Average TCP bandwidth on Linux",
|
||||
"unit": "MB/s",
|
||||
"value": 0,
|
||||
"extra": "linux_result"
|
||||
},
|
||||
{
|
||||
"name": "Average TCP bandwidth on Asterinas",
|
||||
"unit": "MB/s",
|
||||
"value": 0,
|
||||
"extra": "aster_result"
|
||||
}
|
||||
]
|
11
test/benchmark/lmbench/tcp_loopback_bw/run.sh
Normal file
11
test/benchmark/lmbench/tcp_loopback_bw/run.sh
Normal file
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
set -e
|
||||
|
||||
echo "*** Running lmbench TCP bandwidth test ***"
|
||||
|
||||
/benchmark/bin/lmbench/bw_tcp -s
|
||||
/benchmark/bin/lmbench/bw_tcp -m 4096 -P 1 127.0.0.1
|
||||
/benchmark/bin/lmbench/bw_tcp -S 127.0.0.1
|
@ -0,0 +1,8 @@
|
||||
{
|
||||
"alert_threshold": "125%",
|
||||
"alert_tool": "customSmallerIsBetter",
|
||||
"search_pattern": "TCP\\/IP connection cost to 127.0.0.1:",
|
||||
"result_index": "6",
|
||||
"description": "lat_connect",
|
||||
"title": "[TCP sockets] The latency of connect"
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"name": "Average TCP connection latency on Linux",
|
||||
"unit": "µs",
|
||||
"value": 0,
|
||||
"extra": "linux_result"
|
||||
},
|
||||
{
|
||||
"name": "Average TCP connection latency on Asterinas",
|
||||
"unit": "µs",
|
||||
"value": 0,
|
||||
"extra": "aster_result"
|
||||
}
|
||||
]
|
11
test/benchmark/lmbench/tcp_loopback_connect_lat/run.sh
Normal file
11
test/benchmark/lmbench/tcp_loopback_connect_lat/run.sh
Normal file
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
set -e
|
||||
|
||||
echo "*** Running lmbench TCP connection latency test***"
|
||||
|
||||
/benchmark/bin/lmbench/lat_connect -s
|
||||
/benchmark/bin/lmbench/lat_connect 127.0.0.1
|
||||
/benchmark/bin/lmbench/lat_connect -S 127.0.0.1
|
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
|
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
|
@ -0,0 +1,8 @@
|
||||
{
|
||||
"alert_threshold": "125%",
|
||||
"alert_tool": "customSmallerIsBetter",
|
||||
"search_pattern": "Select on 200 tcp fd's:",
|
||||
"result_index": "6",
|
||||
"description": "lat_select",
|
||||
"title": "[Network] The cost of select (TCP fds)"
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"name": "Average select TCP latency on Linux",
|
||||
"unit": "µs",
|
||||
"value": 0,
|
||||
"extra": "linux_result"
|
||||
},
|
||||
{
|
||||
"name": "Average select TCP latency on Asterinas",
|
||||
"unit": "µs",
|
||||
"value": 0,
|
||||
"extra": "aster_result"
|
||||
}
|
||||
]
|
9
test/benchmark/lmbench/tcp_loopback_select_lat/run.sh
Normal file
9
test/benchmark/lmbench/tcp_loopback_select_lat/run.sh
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
set -e
|
||||
|
||||
echo "*** Running lmbench select TCP latency test ***"
|
||||
|
||||
/benchmark/bin/lmbench/lat_select -P 1 tcp
|
8
test/benchmark/lmbench/udp_loopback_lat/config.json
Normal file
8
test/benchmark/lmbench/udp_loopback_lat/config.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"alert_threshold": "125%",
|
||||
"alert_tool": "customSmallerIsBetter",
|
||||
"search_pattern": "UDP latency using 127.0.0.1:",
|
||||
"result_index": "5",
|
||||
"description": "lat_udp",
|
||||
"title": "[UDP sockets] The latency of write+read"
|
||||
}
|
14
test/benchmark/lmbench/udp_loopback_lat/result_template.json
Normal file
14
test/benchmark/lmbench/udp_loopback_lat/result_template.json
Normal file
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"name": "Average UDP latency on Linux",
|
||||
"unit": "µs",
|
||||
"value": 0,
|
||||
"extra": "linux_result"
|
||||
},
|
||||
{
|
||||
"name": "Average UDP latency on Asterinas",
|
||||
"unit": "µs",
|
||||
"value": 0,
|
||||
"extra": "aster_result"
|
||||
}
|
||||
]
|
11
test/benchmark/lmbench/udp_loopback_lat/run.sh
Normal file
11
test/benchmark/lmbench/udp_loopback_lat/run.sh
Normal file
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
set -e
|
||||
|
||||
echo "*** Running lmbench UDP latency test ***"
|
||||
|
||||
/benchmark/bin/lmbench/lat_udp -s
|
||||
/benchmark/bin/lmbench/lat_udp -P 1 127.0.0.1
|
||||
/benchmark/bin/lmbench/lat_udp -S 127.0.0.1
|
8
test/benchmark/lmbench/unix_bw/config.json
Normal file
8
test/benchmark/lmbench/unix_bw/config.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"alert_threshold": "125%",
|
||||
"alert_tool": "customBiggerIsBetter",
|
||||
"search_pattern": "sock stream bandwidth",
|
||||
"result_index": "5",
|
||||
"description": "bw_unix",
|
||||
"title": "[Unix sockets] The bandwidth"
|
||||
}
|
14
test/benchmark/lmbench/unix_bw/result_template.json
Normal file
14
test/benchmark/lmbench/unix_bw/result_template.json
Normal file
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"name": "Average unix bandwidth on Linux",
|
||||
"unit": "MB/s",
|
||||
"value": 0,
|
||||
"extra": "linux_result"
|
||||
},
|
||||
{
|
||||
"name": "Average unix bandwidth on Asterinas",
|
||||
"unit": "MB/s",
|
||||
"value": 0,
|
||||
"extra": "aster_result"
|
||||
}
|
||||
]
|
9
test/benchmark/lmbench/unix_bw/run.sh
Normal file
9
test/benchmark/lmbench/unix_bw/run.sh
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
set -e
|
||||
|
||||
echo "*** Running the LMbench unix bandwidth test ***"
|
||||
|
||||
/benchmark/bin/lmbench/bw_unix -P 1
|
8
test/benchmark/lmbench/unix_connect_lat/config.json
Normal file
8
test/benchmark/lmbench/unix_connect_lat/config.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"alert_threshold": "125%",
|
||||
"alert_tool": "customSmallerIsBetter",
|
||||
"search_pattern": "UNIX connection cost:",
|
||||
"result_index": "4",
|
||||
"description": "lat_connect",
|
||||
"title": "[Unix sockets] The latency of connect"
|
||||
}
|
14
test/benchmark/lmbench/unix_connect_lat/result_template.json
Normal file
14
test/benchmark/lmbench/unix_connect_lat/result_template.json
Normal file
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"name": "Average unix connect latency on Linux",
|
||||
"unit": "µs",
|
||||
"value": 0,
|
||||
"extra": "linux_result"
|
||||
},
|
||||
{
|
||||
"name": "Average unix connect latency on Asterinas",
|
||||
"unit": "µs",
|
||||
"value": 0,
|
||||
"extra": "aster_result"
|
||||
}
|
||||
]
|
10
test/benchmark/lmbench/unix_connect_lat/run.sh
Normal file
10
test/benchmark/lmbench/unix_connect_lat/run.sh
Normal file
@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
set -e
|
||||
|
||||
echo "*** Running the LMbench unix connect latency test ***"
|
||||
|
||||
/benchmark/bin/lmbench/lat_unix_connect -s
|
||||
/benchmark/bin/lmbench/lat_unix_connect -P 1
|
8
test/benchmark/lmbench/unix_lat/config.json
Normal file
8
test/benchmark/lmbench/unix_lat/config.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"alert_threshold": "125%",
|
||||
"alert_tool": "customSmallerIsBetter",
|
||||
"search_pattern": "sock stream latency",
|
||||
"result_index": "5",
|
||||
"description": "lat_unix",
|
||||
"title": "[Unix sockets] The latency of write+read"
|
||||
}
|
14
test/benchmark/lmbench/unix_lat/result_template.json
Normal file
14
test/benchmark/lmbench/unix_lat/result_template.json
Normal file
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"name": "Average unix latency on Linux",
|
||||
"unit": "µs",
|
||||
"value": 0,
|
||||
"extra": "linux_result"
|
||||
},
|
||||
{
|
||||
"name": "Average unix latency on Asterinas",
|
||||
"unit": "µs",
|
||||
"value": 0,
|
||||
"extra": "aster_result"
|
||||
}
|
||||
]
|
9
test/benchmark/lmbench/unix_lat/run.sh
Normal file
9
test/benchmark/lmbench/unix_lat/run.sh
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
set -e
|
||||
|
||||
echo "*** Running the LMbench unix latency test ***"
|
||||
|
||||
/benchmark/bin/lmbench/lat_unix -P 1
|
8
test/benchmark/lmbench/vfs_fcntl_lat/config.json
Normal file
8
test/benchmark/lmbench/vfs_fcntl_lat/config.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"alert_threshold": "125%",
|
||||
"alert_tool": "customSmallerIsBetter",
|
||||
"search_pattern": "Fcntl lock latency:",
|
||||
"result_index": "4",
|
||||
"description": "lat_fcntl",
|
||||
"title": "[VFS] The cost of record locking/unlocking via fcntl"
|
||||
}
|
14
test/benchmark/lmbench/vfs_fcntl_lat/result_template.json
Normal file
14
test/benchmark/lmbench/vfs_fcntl_lat/result_template.json
Normal file
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"name": "Average file locking latency on Linux",
|
||||
"unit": "µs",
|
||||
"value": 0,
|
||||
"extra": "linux_result"
|
||||
},
|
||||
{
|
||||
"name": "Average file locking latency on Asterinas",
|
||||
"unit": "µs",
|
||||
"value": 0,
|
||||
"extra": "aster_result"
|
||||
}
|
||||
]
|
9
test/benchmark/lmbench/vfs_fcntl_lat/run.sh
Normal file
9
test/benchmark/lmbench/vfs_fcntl_lat/run.sh
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
set -e
|
||||
|
||||
echo "*** Running lmbench-fcntl ***"
|
||||
|
||||
/benchmark/bin/lmbench/lat_fcntl -P 1
|
8
test/benchmark/lmbench/vfs_fstat_lat/config.json
Normal file
8
test/benchmark/lmbench/vfs_fstat_lat/config.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"alert_threshold": "125%",
|
||||
"alert_tool": "customSmallerIsBetter",
|
||||
"search_pattern": "Simple fstat",
|
||||
"result_index": "3",
|
||||
"description": "lat_syscall fstat",
|
||||
"title": "[VFS] The cost of fstat"
|
||||
}
|
14
test/benchmark/lmbench/vfs_fstat_lat/result_template.json
Normal file
14
test/benchmark/lmbench/vfs_fstat_lat/result_template.json
Normal file
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"name": "Average fstat latency on Linux",
|
||||
"unit": "µs",
|
||||
"value": 0,
|
||||
"extra": "linux_result"
|
||||
},
|
||||
{
|
||||
"name": "Average fstat latency on Asterinas",
|
||||
"unit": "µs",
|
||||
"value": 0,
|
||||
"extra": "aster_result"
|
||||
}
|
||||
]
|
10
test/benchmark/lmbench/vfs_fstat_lat/run.sh
Normal file
10
test/benchmark/lmbench/vfs_fstat_lat/run.sh
Normal file
@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
set -e
|
||||
|
||||
echo "*** Running the LMbench fstat latency test ***"
|
||||
|
||||
touch test_file
|
||||
/benchmark/bin/lmbench/lat_syscall -P 1 fstat test_file
|
8
test/benchmark/lmbench/vfs_open_lat/config.json
Normal file
8
test/benchmark/lmbench/vfs_open_lat/config.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"alert_threshold": "125%",
|
||||
"alert_tool": "customSmallerIsBetter",
|
||||
"search_pattern": "Simple open\\/close",
|
||||
"result_index": "3",
|
||||
"description": "lat_syscall open",
|
||||
"title": "[VFS] The cost of open+close"
|
||||
}
|
14
test/benchmark/lmbench/vfs_open_lat/result_template.json
Normal file
14
test/benchmark/lmbench/vfs_open_lat/result_template.json
Normal file
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"name": "Average open latency on Linux",
|
||||
"unit": "µs",
|
||||
"value": 0,
|
||||
"extra": "linux_result"
|
||||
},
|
||||
{
|
||||
"name": "Average open latency on Asterinas",
|
||||
"unit": "µs",
|
||||
"value": 0,
|
||||
"extra": "aster_result"
|
||||
}
|
||||
]
|
10
test/benchmark/lmbench/vfs_open_lat/run.sh
Normal file
10
test/benchmark/lmbench/vfs_open_lat/run.sh
Normal file
@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
set -e
|
||||
|
||||
echo "*** Running the LMbench open latency test ***"
|
||||
|
||||
touch test_file
|
||||
/benchmark/bin/lmbench/lat_syscall -P 1 open test_file
|
8
test/benchmark/lmbench/vfs_read_lat/config.json
Normal file
8
test/benchmark/lmbench/vfs_read_lat/config.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"alert_threshold": "150%",
|
||||
"alert_tool": "customSmallerIsBetter",
|
||||
"search_pattern": "Simple read:",
|
||||
"result_index": "3",
|
||||
"description": "lat_syscall read",
|
||||
"title": "[VFS] The cost of read (/dev/zero)"
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user