Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
yxyyeah committed Aug 25, 2024
1 parent 8b4bf3c commit 64cb28d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions waffle/benchmark/src/TS_proxy_benchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ void run_benchmark(int run_time, bool stats, std::vector<int> &latencies, std::a
if (stats) {
rdtscll(end);
double cycles = static_cast<double>(end - start);
latencies.push_back((cycles / ticks_per_ns) / client_batch_size);
latencies.push_back((cycles / ticks_per_ns) / benchmarkConfig::client_batch_size);
}
e = std::chrono::high_resolution_clock::now();
elapsed = static_cast<int>(std::chrono::duration_cast<std::chrono::microseconds>(e - s).count());
Expand Down Expand Up @@ -193,7 +193,6 @@ int main(int argc, char *argv[]) {
std::string proxy_host = "192.168.252.109";
int proxy_port = 9090;
std::string trace_location = benchmarkConfig::trace_location;
int client_batch_size = benchmarkConfig::client_batch_size;
int num_clients = benchmarkConfig::num_clients;
int discrepancy=5000;
std::time_t end_time = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now());
Expand Down Expand Up @@ -236,7 +235,7 @@ int main(int argc, char *argv[]) {
std::atomic_init(&xput, 0);

trace_vector trace;
load_trace(trace_location, trace, client_batch_size);
load_trace(trace_location, trace, benchmarkConfig::client_batch_size);
// std::cout << "trace loaded" << std::endl;

std::vector<std::thread> threads;
Expand Down
Binary file modified waffle/bin/proxy_benchmark
Binary file not shown.

0 comments on commit 64cb28d

Please sign in to comment.