Skip to content

Commit

Permalink
tests: correctly sort latencies (#564)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenplusplus authored and callmehiphop committed Mar 13, 2019
1 parent a33df43 commit 38c4d53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmark/ycsb.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function printMetrics(workload) {
);

workload.operations.forEach(operation => {
const lats = workload.latencies[operation].sort();
const lats = workload.latencies[operation].sort((a, b) => a - b);
const ops = lats.length;
const opName = `[${operation.toUpperCase()}]`;

Expand Down

0 comments on commit 38c4d53

Please sign in to comment.