Skip to content

Commit

Permalink
10 -> 16 to make modulo operation faster
Browse files Browse the repository at this point in the history
  • Loading branch information
nurkiewicz committed Jan 12, 2013
1 parent c454f8f commit c091a44
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -24,7 +24,7 @@ private static <T extends BaseConfig> Calculator fromSpringContext(Class<T> conf
private int benchmarkWith(Calculator calculator, int reps) {
int accum = 0;
for (int i = 0; i < reps; ++i) {
accum += calculator.identity(i % 10);
accum += calculator.identity(i % 16);
}
return accum;
}
Expand Down

0 comments on commit c091a44

Please sign in to comment.