Skip to content
This repository has been archived by the owner on Dec 8, 2021. It is now read-only.

Commit

Permalink
fix: correct the order of columns (#1176)
Browse files Browse the repository at this point in the history
* fix: correct the order of columns in the header

* Actually, swapping the order of the data appears to be more correct.
  • Loading branch information
mr-salty authored Jan 9, 2020
1 parent ed135b7 commit bb2155a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions google/cloud/spanner/benchmarks/multiple_rows_cpu_benchmark.cc
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ class ReadExperiment : public Experiment {
auto final = stream->Finish();
timer.Stop();
samples.push_back(RowCpuSample{
thread_count, client_count, true, row_count, timer.elapsed_time(),
client_count, thread_count, true, row_count, timer.elapsed_time(),
timer.cpu_time(),
google::cloud::grpc_utils::MakeStatusFromRpcError(final)});
}
Expand Down Expand Up @@ -712,7 +712,7 @@ class ReadExperiment : public Experiment {
++row_count;
}
timer.Stop();
samples.push_back(RowCpuSample{thread_count, client_count, false,
samples.push_back(RowCpuSample{client_count, thread_count, false,
row_count, timer.elapsed_time(),
timer.cpu_time(), std::move(status)});
}
Expand Down Expand Up @@ -878,7 +878,7 @@ class SelectExperiment : public Experiment {
auto final = stream->Finish();
timer.Stop();
samples.push_back(RowCpuSample{
thread_count, client_count, true, row_count, timer.elapsed_time(),
client_count, thread_count, true, row_count, timer.elapsed_time(),
timer.cpu_time(),
google::cloud::grpc_utils::MakeStatusFromRpcError(final)});
}
Expand Down Expand Up @@ -931,7 +931,7 @@ class SelectExperiment : public Experiment {
++row_count;
}
timer.Stop();
samples.push_back(RowCpuSample{thread_count, client_count, false,
samples.push_back(RowCpuSample{client_count, thread_count, false,
row_count, timer.elapsed_time(),
timer.cpu_time(), std::move(status)});
}
Expand Down Expand Up @@ -1125,7 +1125,7 @@ class UpdateExperiment : public Experiment {
}

timer.Stop();
samples.push_back(RowCpuSample{thread_count, client_count, true,
samples.push_back(RowCpuSample{client_count, thread_count, true,
row_count, timer.elapsed_time(),
timer.cpu_time(), status});
}
Expand Down Expand Up @@ -1195,7 +1195,7 @@ class UpdateExperiment : public Experiment {
});
timer.Stop();
samples.push_back(RowCpuSample{
thread_count, client_count, false, row_count, timer.elapsed_time(),
client_count, thread_count, false, row_count, timer.elapsed_time(),
timer.cpu_time(), std::move(commit_result).status()});
}
return samples;
Expand Down Expand Up @@ -1376,7 +1376,7 @@ class MutationExperiment : public Experiment {

timer.Stop();
samples.push_back(RowCpuSample{
thread_count, client_count, true, commit_request.mutations_size(),
client_count, thread_count, true, commit_request.mutations_size(),
timer.elapsed_time(), timer.cpu_time(), response.status()});
}
return samples;
Expand Down Expand Up @@ -1446,7 +1446,7 @@ class MutationExperiment : public Experiment {
});
timer.Stop();
samples.push_back(RowCpuSample{
thread_count, client_count, false, row_count, timer.elapsed_time(),
client_count, thread_count, false, row_count, timer.elapsed_time(),
timer.cpu_time(), std::move(commit_result).status()});
}
return samples;
Expand Down

0 comments on commit bb2155a

Please sign in to comment.