bug-recutils
[Top][All Lists]
Advanced

[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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]