[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-recutils] [PATCH 13/13] torture: use index t rees for performance t
From: |
Michał Masłowski |
Subject: |
[bug-recutils] [PATCH 13/13] torture: use index t rees for performance tests. |
Date: |
Mon, 20 Aug 2012 18:21:34 +0200 |
---
ChangeLog | 8 ++++++++
torture/utils/p-recsel.sh | 50 ++++++++++++++++++++++++++++++++++++++++++++++
torture/utils/testutils.sh | 2 +-
3 files changed, 59 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 77f1c66..9ada6f2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2012-08-20 Michał Masłowski <address@hidden>
+ torture: use index trees for performance tests.
+ * torture/utils/p-recsel.sh: Add indexes on field9 to all index
+ files.
+ * torture/utils/testutils.sh (test_tool): Pass the file as
+ argument to recfix if --add-index is used.
+
+2012-08-20 Michał Masłowski <address@hidden>
+
src: implement a trivial query planner.
* src/rec-db.c (rec_db_add_rsets_from_file): Store the rset and
parser in index.
diff --git a/torture/utils/p-recsel.sh b/torture/utils/p-recsel.sh
index 7809517..319b419 100755
--- a/torture/utils/p-recsel.sh
+++ b/torture/utils/p-recsel.sh
@@ -233,6 +233,56 @@ test_tool recfix-build-idx-20000-records-many perf \
--build-index \
20000-records-many
+test_tool recfix-add-idx-200-records perf \
+ recfix \
+ "--add-index field9" \
+ 200-records
+
+test_tool recfix-add-idx-500-records perf \
+ recfix \
+ "--add-index field9" \
+ 500-records
+
+test_tool recfix-add-idx-1000-records perf \
+ recfix \
+ "--add-index field9" \
+ 1000-records
+
+test_tool recfix-add-idx-10000-records perf \
+ recfix \
+ "--add-index field9" \
+ 10000-records
+
+test_tool recfix-add-idx-20000-records perf \
+ recfix \
+ "--add-index field9" \
+ 20000-records
+
+test_tool recfix-add-idx-200-records-many perf \
+ recfix \
+ "-t c --add-index field9" \
+ 200-records-many
+
+test_tool recfix-add-idx-500-records-many perf \
+ recfix \
+ "-t c --add-index field9" \
+ 500-records-many
+
+test_tool recfix-add-idx-1000-records-many perf \
+ recfix \
+ "-t c --add-index field9" \
+ 1000-records-many
+
+test_tool recfix-add-idx-10000-records-many perf \
+ recfix \
+ "-t c --add-index field9" \
+ 10000-records-many
+
+test_tool recfix-add-idx-20000-records-many perf \
+ recfix \
+ "-t c --add-index field9" \
+ 20000-records-many
+
do_p_recsel_tests
#
diff --git a/torture/utils/testutils.sh b/torture/utils/testutils.sh
index 9db64df..e24f5db 100644
--- a/torture/utils/testutils.sh
+++ b/torture/utils/testutils.sh
@@ -201,7 +201,7 @@ test_tool ()
utility_call="$utility $parameters $input_file" ;;
recfix)
case "$parameters" in
- --build-index)
+ --build-index|*--add-index*)
utility_call="$utility $parameters $input_file";;
*)
utility_call="cat $input_file | $utility $parameters" ;;
--
1.7.11.4
- [bug-recutils] [PATCH 01/13] src,torture: imple ment abstract record iterators., (continued)
- [bug-recutils] [PATCH 01/13] src,torture: imple ment abstract record iterators., Michał Masłowski, 2012/08/20
- [bug-recutils] [PATCH 02/13] src,torture: imple ment initial index tree support without nodes., Michał Masłowski, 2012/08/20
- [bug-recutils] [PATCH 06/13] utils,doc: make re cfix --build-index add index trees., Michał Masłowski, 2012/08/20
- [bug-recutils] [PATCH 05/13] src: fix index file builder., Michał Masłowski, 2012/08/20
- [bug-recutils] [PATCH 04/13] src,torture: imple ment index builder., Michał Masłowski, 2012/08/20
- [bug-recutils] [PATCH 12/13] src: implement a tri vial query planner., Michał Masłowski, 2012/08/20
- [bug-recutils] [PATCH 09/13] src,torture: suppo rt duplicating index tree objects., Michał Masłowski, 2012/08/20
- [bug-recutils] [PATCH 10/13] src: keep indexes in rsets., Michał Masłowski, 2012/08/20
- [bug-recutils] [PATCH 11/13] src: support index t rees that point to a leaf too left of the key searched f or., Michał Masłowski, 2012/08/20
- [bug-recutils] [PATCH 08/13] utils: add recfix -- add-index command., Michał Masłowski, 2012/08/20
- [bug-recutils] [PATCH 13/13] torture: use index t rees for performance tests.,
Michał Masłowski <=
- [bug-recutils] [PATCH 07/13] src: fix index range checks., Michał Masłowski, 2012/08/20
- [bug-recutils] [PATCH 03/13] src,torture: imple ment index tree scans., Michał Masłowski, 2012/08/20