Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
squash: flip
  • Loading branch information
Trott committed Aug 21, 2016
commit c672a4750a79dbbc3e3ddeb8eea385c7e74894d9
6 changes: 3 additions & 3 deletions test/sequential/test-crypto-timing-safe-equal.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ function getTValue(compareFunc) {
const rawUnequalBenches = Array(numTrials);

for (let i = 0; i < numTrials; i++) {
// First benchmark: comparing two equal buffers
rawEqualBenches[i] = runBenchmark(compareFunc, bufferA1, bufferA2, true);
// Second benchmark: comparing two unequal buffers
// First benchmark: comparing two unequal buffers
rawUnequalBenches[i] = runBenchmark(compareFunc, bufferB, bufferC, false);
// Second benchmark: comparing two equal buffers
rawEqualBenches[i] = runBenchmark(compareFunc, bufferA1, bufferA2, true);
}

const equalBenches = filterOutliers(rawEqualBenches);
Expand Down