Skip to content

Commit

Permalink
feat: increase pattern to 25 chars
Browse files Browse the repository at this point in the history
  • Loading branch information
frarees committed Oct 8, 2020
1 parent d15adff commit ea57321
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Frequency distribution chart:

The program generates OS input events (key presses) and uses screen capture to fully automate the test process.

At first, a predefined pattern ("``.....``") is inserted in editor window in order to detect screen metrics (start position, step, background, etc.).
At first, a predefined pattern (a series of "``.``" characters) is inserted in editor window in order to detect screen metrics (start position, step, background, etc.).

After that, the program types a predefined number of "``.``" characters into the editor (with given periodicity), measuring delays between key presses and corresponding character drawings.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
import static java.lang.Thread.sleep;

class BenchmarkImpl implements Benchmark {
private static final int PATTERN_LENGTH = 5;
private static final int MIN_LINE_LENGTH = 15;
private static final int PATTERN_LENGTH = 25;
private static final int MIN_LINE_LENGTH = 25;

private static final int PATTERN_INSERTION_DELAY = 300;
private static final int DELETION_DELAY = 200;
Expand Down

0 comments on commit ea57321

Please sign in to comment.