Skip to content
Prev Previous commit
Next Next commit
Remove logs.
  • Loading branch information
vbabanin committed Mar 25, 2025
commit f408b4a0e4a6cce5320ca261ba6e7f5af7effe2a
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ public void setUp() throws Exception {
database.drop();

namespaces = new ArrayList<>();
long time = System.currentTimeMillis();
for (int i = 1; i <= NAMESPACES_COUNT; i++) {
namespaces.add(new MongoNamespace(AbstractMongoBenchmark.DATABASE_NAME, AbstractMongoBenchmark.COLLECTION_NAME + "_" + i));
}
Expand All @@ -67,7 +66,6 @@ public void before() throws Exception {
}

modelList.clear();
long time = System.currentTimeMillis();
for (int i = 0; i < numDocuments; i++) {
MongoNamespace namespace = namespaces.get(i % NAMESPACES_COUNT);
modelList.add(insertOne(
Expand All @@ -81,7 +79,6 @@ public void before() throws Exception {
namespace,
Filters.empty()));
}
System.out.println("Time to create documents: " + (System.currentTimeMillis() - time));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,11 @@ public void before() throws Exception {
database.createCollection(COLLECTION_NAME);

modelList.clear();
long time = System.currentTimeMillis();
for (int i = 0; i < numDocuments; i++) {
modelList.add(new InsertOneModel<>((createDocument())));
modelList.add(new ReplaceOneModel<>(Filters.empty(), createDocument()));
modelList.add(new DeleteOneModel<>(Filters.empty()));
}
System.out.println("Time to create models: " + (System.currentTimeMillis() - time));
}

@Override
Expand Down