-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
42 changed files
with
90 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ | |
* @author [email protected] (Ben Manes) | ||
*/ | ||
@State(Scope.Benchmark) | ||
@SuppressWarnings("PMD.MethodNamingConventions") | ||
@SuppressWarnings({"MemberName", "PMD.MethodNamingConventions"}) | ||
public class DelegationBenchmark { | ||
private static final int SIZE = (2 << 14); | ||
private static final int MASK = SIZE - 1; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,7 @@ | |
* @author [email protected] (Ben Manes) | ||
*/ | ||
@State(Scope.Benchmark) | ||
@SuppressWarnings("PMD.MethodNamingConventions") | ||
@SuppressWarnings({"MemberName", "PMD.MethodNamingConventions"}) | ||
public class FactoryBenchmark { | ||
private final ReflectionFactory reflectionFactory = new ReflectionFactory(); | ||
private final MethodHandleFactory methodHandleFactory = new MethodHandleFactory(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,7 +48,7 @@ | |
* @author [email protected] (Ben Manes) | ||
*/ | ||
@State(Scope.Benchmark) | ||
@SuppressWarnings("PMD.MethodNamingConventions") | ||
@SuppressWarnings({"MemberName", "PMD.MethodNamingConventions"}) | ||
public class SlotLookupBenchmark { | ||
static final int SPARSE_SIZE = 2 << 14; | ||
static final int ARENA_SIZE = 2 << 6; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ | |
/** | ||
* @author [email protected] (Ben Manes) | ||
*/ | ||
@SuppressWarnings("PMD.MethodNamingConventions") | ||
@SuppressWarnings({"MemberName", "PMD.MethodNamingConventions"}) | ||
public class TimeBenchmark { | ||
|
||
@Benchmark @Threads(1) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,6 +37,7 @@ | |
* @author [email protected] (Ben Manes) | ||
*/ | ||
@State(Scope.Benchmark) | ||
@SuppressWarnings("MemberName") | ||
public class BuilderBenchmark { | ||
@Param BuilderType type; | ||
Supplier<?> builder; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,6 +42,7 @@ | |
* | ||
* @author [email protected] (Ben Manes) | ||
*/ | ||
@SuppressWarnings("MemberName") | ||
public enum CacheType { | ||
|
||
/* --------------- Unbounded --------------- */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,8 @@ | |
* @author [email protected] (Ben Manes) | ||
*/ | ||
@State(Scope.Benchmark) | ||
@SuppressWarnings({"LexicographicalAnnotationAttributeListing", "PMD.MethodNamingConventions"}) | ||
@SuppressWarnings({"LexicographicalAnnotationAttributeListing", | ||
"MemberName", "PMD.MethodNamingConventions"}) | ||
public class ComputeBenchmark { | ||
static final int SIZE = (2 << 14); | ||
static final int MASK = SIZE - 1; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,7 +44,8 @@ | |
* | ||
* @author [email protected] (Ben Manes) | ||
*/ | ||
@SuppressWarnings({"LexicographicalAnnotationAttributeListing", "PMD.MethodNamingConventions"}) | ||
@SuppressWarnings({"LexicographicalAnnotationAttributeListing", | ||
"MemberName", "PMD.MethodNamingConventions", "SystemOut"}) | ||
public final class MemoryBenchmark { | ||
// The number of entries added to minimize skew due to non-entry factors | ||
static final int FUZZY_SIZE = 25_000; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,7 @@ | |
* | ||
* @author [email protected] (Ben Manes) | ||
*/ | ||
@SuppressWarnings("MemberName") | ||
public enum SketchType { | ||
Flat { | ||
@Override public <E> TinyLfuSketch<E> create(long estimatedSize) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,7 @@ | |
* @author [email protected] (Ben Manes) | ||
*/ | ||
@RunWith(PaxExam.class) | ||
@SuppressWarnings("MemberName") | ||
@ExamReactorStrategy(PerMethod.class) | ||
public final class OSGiTest { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ | |
* | ||
* @author [email protected] (Ben Manes) | ||
*/ | ||
@SuppressWarnings("ImmutableEnumChecker") | ||
@SuppressWarnings({"ImmutableEnumChecker", "MemberName"}) | ||
public enum BufferType { | ||
Ticket(TicketBuffer::new), | ||
FastFlow(FastFlowBuffer::new), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,8 +67,8 @@ | |
* | ||
* @author [email protected] (Ben Manes) | ||
*/ | ||
@SuppressWarnings("ImmutableEnumChecker") | ||
@Target(METHOD) @Retention(RUNTIME) | ||
@SuppressWarnings({"ImmutableEnumChecker", "MemberName"}) | ||
public @interface CacheSpec { | ||
|
||
/* --------------- Compute --------------- */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.