This commit is contained in:
Zsolt Ero
2023-12-27 02:01:24 +01:00
parent d26e31b377
commit 3f55c69e02
16 changed files with 294 additions and 283 deletions

View File

@@ -1,5 +1,5 @@
from ssh_lib.config import scripts
from ssh_lib.utils import apt_get_install, apt_get_update, put, put_str, sudo_cmd
from ssh_lib.config import scripts_dir
from ssh_lib.utils import apt_get_install, put
def c1000k(c):
@@ -17,6 +17,6 @@ def c1000k(c):
def benchmark(c):
apt_get_install(c, 'wrk')
c.sudo('mkdir -p /data/ofm/benchmark')
put(c, f'{scripts}/benchmark/wrk_custom_list.lua', '/data/ofm/benchmark')
put(c, f'{scripts_dir}/http_host/benchmark/wrk_custom_list.lua', '/data/ofm/benchmark')
# wrk -c10 -d10s -t1 -s /data/ofm/benchmark/wrk_custom_list.lua http://localhost