diff --git a/benchmark b/benchmark index 12235e2..192ef10 160000 --- a/benchmark +++ b/benchmark @@ -1 +1 @@ -Subproject commit 12235e24652fc7f809373e7c11a5f73c5763fc4c +Subproject commit 192ef10025eb2c4cdd392bc502f0c852196baa48 diff --git a/benchmark.cpp b/benchmark.cpp index 012ddd6..5e50046 100644 --- a/benchmark.cpp +++ b/benchmark.cpp @@ -28,6 +28,7 @@ RA_Options get_redis_options() RA_Options opts; opts.cxn.path = get_redis_path(); opts.cxn.host = get_redis_host(); + if (const auto* port = std::getenv("REDIS_ADAPTER_BENCHMARK_PORT")) opts.cxn.port = std::stoi(port); return opts; }