Update CollectionsBenchmark.java
This commit is contained in:
parent
5b9df5d901
commit
224dce952b
|
@ -25,9 +25,9 @@ public class CollectionsBenchmark {
|
||||||
@Setup(Level.Trial)
|
@Setup(Level.Trial)
|
||||||
public void setUp() {
|
public void setUp() {
|
||||||
|
|
||||||
for (long ii = 0; ii < iterations; ii++) {
|
for (long i = 0; i < iterations; i++) {
|
||||||
employeeSet.add(new Employee(ii, "John"));
|
employeeSet.add(new Employee(i, "John"));
|
||||||
employeeList.add(new Employee(ii, "John"));
|
employeeList.add(new Employee(i, "John"));
|
||||||
}
|
}
|
||||||
|
|
||||||
employeeList.add(employee);
|
employeeList.add(employee);
|
||||||
|
|
Loading…
Reference in New Issue