Mercurial > hg > Members > shoshi > jungle > jungle-core
changeset 287:3705cc48f74b
edit benchmark
author | tatsuki |
---|---|
date | Fri, 30 Dec 2016 21:12:37 +0900 |
parents | 1a36841024f2 |
children | fae289fa5f6c |
files | src/main/java/jp/ac/u_ryukyu/ie/cr/benchMark/index/CreateIndexBenchMark.java src/main/java/jp/ac/u_ryukyu/ie/cr/jungle/transaction/manager/DefaultTransactionManager.java |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/jp/ac/u_ryukyu/ie/cr/benchMark/index/CreateIndexBenchMark.java Fri Dec 30 20:26:28 2016 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/ie/cr/benchMark/index/CreateIndexBenchMark.java Fri Dec 30 21:12:37 2016 +0900 @@ -19,16 +19,16 @@ Jungle jungle = new DefaultJungle(null, "hogehoge", new DefaultTraverser()); System.out.println("end create Tree"); - for (int i = 1; i <= 10; i++) { + for (int i = 1; i <= 1000; i++) { Long t1 = System.currentTimeMillis(); JungleTree tree = jungle.createNewTree("Tree" + i); JungleTreeEditor editor = tree.getJungleTreeEditor(); NodePath path = new DefaultNodePath(); - int maxNodeCount = 1000 * i; + int maxNodeCount = 1 * i; JungleTreeCreater creater = new JungleTreeCreater(maxNodeCount); editor = creater.createTree(editor, key, indexKey, path); Long t2 = System.currentTimeMillis(); - System.out.println("edit count = " + (i * 100) + " : time = " + (t2 - t1)); + System.out.println((i) + " " + (t2 - t1)); System.gc(); //GCしないとクソみたいに重くなる } }
--- a/src/main/java/jp/ac/u_ryukyu/ie/cr/jungle/transaction/manager/DefaultTransactionManager.java Fri Dec 30 20:26:28 2016 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/ie/cr/jungle/transaction/manager/DefaultTransactionManager.java Fri Dec 30 21:12:37 2016 +0900 @@ -66,7 +66,7 @@ Index index = tip.getIndex(); ParentIndex parentIndex = tip.getParentIndex(); InterfaceTraverser traverser = new InterfaceTraverser(newRoot, index, parentIndex, true); - //traverser.updateIndex(editNodeList); + traverser.updateIndex(editNodeList); //traverser.createIndex(); //System.out.println("end"); TreeContext newTreeContext = new DefaultTreeContext(newRoot, tip, list, uuid, _treeName, nextRevision, traverser);