def main() -> None: stats = read_stats("redis.json") settings = create_settings() setup_remote_network(settings) record_count = 100000 op_count = 10000 benchmark = Benchmark(settings, record_count, op_count) benchmarks = { "native": benchmark_redis_native, "sgx-lkl": benchmark_redis_sgx_lkl, "sgx-io": benchmark_redis_sgx_io, "scone": benchmark_redis_scone, } system = set(stats["system"]) for name, benchmark_func in benchmarks.items(): if name in system: print(f"skip {name} benchmark") continue benchmark_func(benchmark, stats) write_stats("redis.json", stats) csv = f"redis-{NOW}.tsv" print(csv) throughput_df = pd.DataFrame(stats) throughput_df.to_csv(csv, index=False, sep="\t") throughput_df.to_csv("redis-latest.tsv", index=False, sep="\t")
def main() -> None: settings = create_settings() setup_remote_network(settings) benchmark = Benchmark(settings) run_variant("all-on", benchmark, extra_env={}) run_variant("offload_off", benchmark, extra_env=dict(SGXLKL_GSO_OFFLOAD="0", SGXLKL_CHKSUM_OFFLOAD="0")) run_variant("zerocopy_off", benchmark, extra_env=dict(SGXLKL_DPDK_ZEROCOPY="0"))
def main() -> None: stats = read_stats("network-test-bs.json") settings = create_settings() setup_remote_network(settings) benchmark = Benchmark(settings) benchmarks = { #"sgx-lkl": benchmark_nw_test_sgx_lkl, "sgx-io": benchmark_nw_test_sgx_io, } system = set(stats["system"]) for name, bench_func in benchmarks.items(): if name in system: print(f"skip {name} benchmark") continue bench_func(benchmark, stats) write_stats("network-test-bs.json", stats) csv = f"network-test-bs-{NOW}.tsv" throughput_df = pd.DataFrame(stats) throughput_df.to_csv(csv, index=False, sep="\t") throughput_df.to_csv("network-test-bs-latest.tsv", index=False, sep="\t")
def main() -> None: stats = read_stats("iperf.json") settings = create_settings() setup_remote_network(settings) benchmark = Benchmark(settings) benchmarks = { "native": benchmark_native, "sgx-io": benchmark_sgx_io, "sgx-lkl": benchmark_sgx_lkl, "scone": benchmark_scone, } system = set(stats["system"]) for name, benchmark_func in benchmarks.items(): if name in system: print(f"skip {name} benchmark") continue benchmark_func(benchmark, stats) write_stats("iperf.json", stats) csv = f"iperf-latest.tsv" print(csv) pd.DataFrame(stats).to_csv(csv, index=False, sep="\t")