[Debtags-commits] [svn] r1599 - in tagcoll/trunk: . bench
Enrico Zini
enrico at costa.debian.org
Tue Feb 21 16:06:43 UTC 2006
Author: enrico
Date: Tue Feb 21 16:06:42 2006
New Revision: 1599
Modified:
tagcoll/trunk/ (props changed)
tagcoll/trunk/bench/collection.cc
Log:
r7420 at viaza: enrico | 2006-02-21 16:32:01 +0100
Also benchmark TDBIndexer
Modified: tagcoll/trunk/bench/collection.cc
==============================================================================
--- tagcoll/trunk/bench/collection.cc (original)
+++ tagcoll/trunk/bench/collection.cc Tue Feb 21 16:06:42 2006
@@ -283,6 +283,28 @@
}
};
+class benchTDBIndexer : public CollectionBench
+{
+protected:
+ virtual void main()
+ {
+ Timer main = mktimer("total");
+ TDBIndexer<string, string> coll;
+
+ Timer t1 = mktimer("indexing collection");
+ outputROCollection(coll);
+ t1.done();
+
+ {
+ Timer t = mktimer("read only collection");
+ benchROCollection(coll);
+ }
+ }
+
+public:
+ benchTDBIndexer() : CollectionBench("TDBIndexer") {}
+};
+
class benchCardinalityStore : public CollectionBench
{
@@ -314,6 +336,7 @@
addChild(new benchInputMerger());
addChild(new benchBasicStringDiskIndex());
addChild(new benchTDBReadonlyDiskIndex());
+ addChild(new benchTDBIndexer());
addChild(new benchCardinalityStore());
}
};
More information about the Debtags-commits
mailing list