Skip to content

Commit

Permalink
Fixed linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
shauryachats committed Feb 5, 2025
1 parent f77e059 commit 6e70a53
Showing 1 changed file with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public class BenchmarkObjectOpenHashMap {
"500000",
"1000000",
"5000000",
"20000000",
"20000000"
})
public int _cardinality;

Expand All @@ -65,8 +65,7 @@ public void setUp()

@Benchmark
@BenchmarkMode(Mode.AverageTime)
public int object2IntReservedOpenHashMap()
{
public int object2IntReservedOpenHashMap() {
Object2IntOpenHashMap<Object> map = new Object2IntOpenHashMap<>(_cardinality + 1);
map.defaultReturnValue(INVALID_ID);
for (int j = 0; j < _cardinality; j++) {
Expand All @@ -77,8 +76,7 @@ public int object2IntReservedOpenHashMap()

@Benchmark
@BenchmarkMode(Mode.AverageTime)
public int object2IntOpenHashMap()
{
public int object2IntOpenHashMap() {
Object2IntOpenHashMap<Object> map = new Object2IntOpenHashMap<>();
map.defaultReturnValue(INVALID_ID);
for (int j = 0; j < _cardinality; j++) {
Expand All @@ -89,8 +87,7 @@ public int object2IntOpenHashMap()

@Benchmark
@BenchmarkMode(Mode.AverageTime)
public int vanillaReservedHashMap()
{
public int vanillaReservedHashMap() {
HashMap<Object, Integer> map = new HashMap<>(_cardinality + 1);
for (int j = 0; j < _cardinality; j++) {
getGroupId(map, _values[j]);
Expand All @@ -100,8 +97,7 @@ public int vanillaReservedHashMap()

@Benchmark
@BenchmarkMode(Mode.AverageTime)
public int vanillaHashMap()
{
public int vanillaHashMap() {
HashMap<Object, Integer> map = new HashMap<>();
for (int j = 0; j < _cardinality; j++) {
getGroupId(map, _values[j]);
Expand Down

0 comments on commit 6e70a53

Please sign in to comment.