Mercurial > hg > Members > tatsuki > jungle-bench
diff src/main/java/example/WriteThread.java @ 8:442463aa27e5
miss Spell revision
author | one |
---|---|
date | Tue, 01 Apr 2014 18:28:34 +0900 |
parents | 24fca21a576e |
children |
line wrap: on
line diff
--- a/src/main/java/example/WriteThread.java Tue Apr 01 04:35:08 2014 +0900 +++ b/src/main/java/example/WriteThread.java Tue Apr 01 18:28:34 2014 +0900 @@ -16,14 +16,14 @@ public ByteBuffer value = ByteBuffer.wrap(valueString.getBytes()); Jungle j; NodePath childPath; - int roopCount; + int loopCount; int num; - WriteThread(Jungle j, NodePath childPath, int roopCount, int num) { + WriteThread(Jungle j, NodePath childPath, int loopCount, int num) { this.num = num; this.valueString = this.valueString + Integer.toString(num); this.value = ByteBuffer.wrap(valueString.getBytes()); - this.roopCount = roopCount; + this.loopCount = loopCount; this.j = j; this.childPath = childPath; } @@ -31,10 +31,10 @@ public void run() { JungleTree tree = j.getTreeByName("tree");// 名前を取得 Either<Error, JungleTreeEditor> either; - System.out.println("roopCount = " + roopCount); + System.out.println("loopCount = " + loopCount); long t1 = System.currentTimeMillis();// 時間の測定開始 - for (int count = 0; count < roopCount; count++) { + for (int count = 0; count < loopCount; count++) { do { JungleTreeEditor editor = tree.getTreeEditor();// Treeのeditorを作成 either = editor.putAttribute(childPath, key, value);