Skip to content

Commit 38c61f2

Browse files
committed
rm old benchmark
1 parent abf3ee3 commit 38c61f2

File tree

3 files changed

+0
-124
lines changed

3 files changed

+0
-124
lines changed

mytonctrl/mytonctrl.py

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,6 @@ def inject_globals(func):
146146
module = AlertBotModule(ton, local)
147147
module.add_console_commands(console)
148148

149-
add_command(local, console, "benchmark", inject_globals(run_benchmark))
150-
151149
# Process input parameters
152150
opts, args = getopt.getopt(argv,"hc:w:",["config=","wallets="])
153151
for opt, arg in opts:
@@ -402,29 +400,6 @@ def upgrade_btc_teleport(local, ton, reinstall=False, branch: str = 'master', us
402400
local.try_function(module.init, args=[reinstall, branch, user])
403401

404402

405-
def run_benchmark(ton, args):
406-
timeout = 200
407-
with get_package_resource_path('mytonctrl', 'scripts/benchmark.sh') as benchmark_script_path:
408-
with get_package_resource_path('mytonctrl', 'scripts/etabar.py') as etabar_script_path:
409-
benchmark_result_path = "/tmp/benchmark_result.json"
410-
run_args = ["python3", etabar_script_path, str(timeout), benchmark_script_path, benchmark_result_path]
411-
exit_code = run_as_root(run_args)
412-
with open(benchmark_result_path, 'rt') as file:
413-
text = file.read()
414-
if exit_code != 0:
415-
color_print("Benchmark - {red}Error:{endc} " + text)
416-
return
417-
#end if
418-
419-
data = Dict(json.loads(text))
420-
table = list()
421-
table += [["Test type", "Read speed", "Write speed", "Read iops", "Write iops", "Random ops"]]
422-
table += [["Fio lite", data.lite.read_speed, data.lite.write_speed, data.lite.read_iops, data.lite.write_iops, None]] # RND-4K-QD64
423-
table += [["Fio hard", data.hard.read_speed, data.hard.write_speed, data.hard.read_iops, data.hard.write_iops, None]] # RND-4K-QD1
424-
table += [["RocksDB", None, None, None, None, data.full.random_ops]]
425-
print_table(table)
426-
#end define
427-
428403
def check_mytonctrl_update(local):
429404
git_path = local.buffer.my_dir
430405
result = check_git_update(git_path)

mytonctrl/scripts/benchmark.sh

Lines changed: 0 additions & 72 deletions
This file was deleted.

mytonctrl/scripts/etabar.py

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)