diff options
author | Zach Koopmans <zkoopmans@google.com> | 2021-06-11 11:52:55 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-06-11 11:56:15 -0700 |
commit | c3326c440aa7f65355217ef235453587b222de7c (patch) | |
tree | 1bd920fe1c4d50f16922633f9441dddce2f5f034 /Makefile | |
parent | 0892420c9796358da06ea3ba375ee3e0fa8595ac (diff) |
[benchmarks] Fix redis benchmark.
Intermittenly, the connection between the client redis_benchmark container can be
flaky with the server, even if the server has been up for a long time. If this
happens, just re-run a client until we get a result.
Also, don't start a new server for each operation.
Also also, modify Makefile run-benchmark call to accept RUNTIME=runc correctly.
PiperOrigin-RevId: 378918886
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -369,7 +369,8 @@ benchmark-platforms: load-benchmarks $(RUNTIME_BIN) ## Runs benchmarks for runc .PHONY: benchmark-platforms run-benchmark: load-benchmarks $(RUNTIME_BIN) ## Runs single benchmark and optionally sends data to BigQuery. - @$(call run_benchmark,$(RUNTIME)$(BENCH_VFS),$(BENCH_RUNTIME_ARGS) $(BENCH_VFS)) + @if test "$(RUNTIME)" = "runc"; then $(call run_benchmark,$(RUNTIME)); fi; + @if test "$(RUNTIME)" != "runc"; then $(call run_benchmark,$(RUNTIME)$(BENCH_VFS),$(BENCH_RUNTIME_ARGS) $(BENCH_VFS)); fi; .PHONY: run-benchmark ## |