Skip to content

Commit

Permalink
HBASE-29040 Fix description of "sampleRate" of PerformanceEvaluation (#…
Browse files Browse the repository at this point in the history
…6558)

Signed-off-by: Duo Zhang <[email protected]>
(cherry picked from commit 670deaa)
  • Loading branch information
junegunn authored and Apache9 committed Jan 13, 2025
1 parent 5bed005 commit f1d45b8
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1171,7 +1171,7 @@ static abstract class TestBase {
this.opts = options;
this.status = status;
this.testName = this.getClass().getSimpleName();
everyN = (long) (opts.totalRows / (opts.totalRows * opts.sampleRate));
everyN = (long) (1 / opts.sampleRate);
if (options.isValueZipf()) {
this.zipf =
new RandomDistribution.Zipf(ThreadLocalRandom.current(), 1, options.getValueSize(), 1.2);
Expand Down Expand Up @@ -2675,8 +2675,7 @@ protected static void printUsage(final String shortName, final String message) {
+ "Default: depend on oneCon parameter. if oneCon set to true, then connCount=1, "
+ "if not, connCount=thread number");

System.err.println(" sampleRate Execute test on a sample of total "
+ "rows. Only supported by randomRead. Default: 1.0");
System.err.println(" sampleRate Execute test on a sample of total rows. Default: 1.0");
System.err.println(" period Report every 'period' rows: "
+ "Default: opts.perClientRunRows / 10 = " + DEFAULT_OPTS.getPerClientRunRows() / 10);
System.err.println(" cycles How many times to cycle the test. Defaults: 1.");
Expand Down

0 comments on commit f1d45b8

Please sign in to comment.