Update CollectionsBenchmark.java

This commit is contained in:
Mher Baghinyan 2018-08-11 18:06:21 +04:00 committed by GitHub
parent 5b9df5d901
commit 224dce952b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -25,9 +25,9 @@ public class CollectionsBenchmark {
@Setup(Level.Trial)
public void setUp() {
for (long ii = 0; ii < iterations; ii++) {
employeeSet.add(new Employee(ii, "John"));
employeeList.add(new Employee(ii, "John"));
for (long i = 0; i < iterations; i++) {
employeeSet.add(new Employee(i, "John"));
employeeList.add(new Employee(i, "John"));
}
employeeList.add(employee);