Skip to content

Commit 22fe666

Browse files
author
Mark
committed
vpack: fix performance test
1 parent 87ffc91 commit 22fe666

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/test/java/com/arangodb/velocypack/TestBuilder.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ private static void recurse(final VPackBuilder builder, final int curdepth, fina
5858
if (curdepth >= depth) {
5959
return;
6060
}
61-
builder.add("attr1", new Value("TextTextText" + depth));
62-
builder.add("attr2", new Value(depth));
63-
builder.add("attr3", new Value(depth));
64-
builder.add("attr4", new Value(depth + 0.5));
61+
builder.add("attr1", new Value("TextTextText" + curdepth));
62+
builder.add("attr2", new Value(curdepth));
63+
builder.add("attr3", new Value(curdepth));
64+
builder.add("attr4", new Value(curdepth + 0.5));
6565
builder.add("attr5", new Value(true));
6666
// for (int i = 0; i < size; i++) {
6767
// builder.add("Hallo" + i, new Value(i));
@@ -94,10 +94,10 @@ private static void recurse(final JsonObject obj, final int curdepth, final int
9494
if (curdepth >= depth) {
9595
return;
9696
}
97-
obj.addProperty("attr1", "TextTextText" + depth);
98-
obj.addProperty("attr2", depth);
99-
obj.addProperty("attr3", depth);
100-
obj.addProperty("attr4", depth + 0.5);
97+
obj.addProperty("attr1", "TextTextText" + curdepth);
98+
obj.addProperty("attr2", curdepth);
99+
obj.addProperty("attr3", curdepth);
100+
obj.addProperty("attr4", curdepth + 0.5);
101101
obj.addProperty("attr5", true);
102102
final JsonObject subObj1 = new JsonObject();
103103
recurse(subObj1, curdepth + 1, depth, size);

0 commit comments

Comments
 (0)