Browse files

10 -> 16 to make modulo operation faster

  • Loading branch information...
1 parent c454f8f commit c091a4417a118531fd1234a37053aac8ebf220bd @nurkiewicz committed Jan 12, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/com/blogspot/nurkiewicz/cacheable/CacheableBenchmark.java
View
2 src/main/java/com/blogspot/nurkiewicz/cacheable/CacheableBenchmark.java
@@ -24,7 +24,7 @@
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;
}

0 comments on commit c091a44

Please sign in to comment.