[Groonga-commit] groonga/wikipedia-search at 4291c98 [master] Search 3 times by default

Back to archive index

Kouhei Sutou null+****@clear*****
Fri May 22 18:15:51 JST 2015


Kouhei Sutou	2015-05-22 18:15:51 +0900 (Fri, 22 May 2015)

  New Revision: 4291c98b5134d178d452292c0b77bdcd88369fd6
  https://github.com/groonga/wikipedia-search/commit/4291c98b5134d178d452292c0b77bdcd88369fd6

  Message:
    Search 3 times by default

  Modified files:
    benchmark/centos6/pgroonga.sh

  Modified: benchmark/centos6/pgroonga.sh (+6 -5)
===================================================================
--- benchmark/centos6/pgroonga.sh    2015-05-22 18:15:12 +0900 (4508030)
+++ benchmark/centos6/pgroonga.sh    2015-05-22 18:15:51 +0900 (b9f5f0d)
@@ -2,7 +2,8 @@
 
 set -u
 
-n_tries=1
+n_load_tries=1
+n_search_tries=3
 
 script_dir=$(cd "$(dirname $0)"; pwd)
 base_dir="${script_dir}/../.."
@@ -94,7 +95,7 @@ load_data()
 
 benchmark_load_pgroonga()
 {
-  for i in $(seq ${n_tries}); do
+  for i in $(seq ${n_load_tries}); do
     echo "PGroonga: load: ${i}"
     run sudo -u postgres -H psql -d benchmark \
         --command 'DROP INDEX IF EXISTS wikipedia_index_pgroonga'
@@ -115,7 +116,7 @@ benchmark_load_pgroonga()
 
 benchmark_load_pg_bigm()
 {
-  for i in $(seq ${n_tries}); do
+  for i in $(seq ${n_load_tries}); do
     echo "pg_bigm: load: ${i}"
     run sudo -u postgres -H psql -d benchmark \
         --command 'DROP INDEX IF EXISTS wikipedia_index_pg_bigm'
@@ -137,7 +138,7 @@ benchmark_load_pg_bigm()
 benchmark_search_pgroonga()
 {
   cat "${benchmark_dir}/search-words.list" | while read search_word; do
-    for i in $(seq ${n_tries}); do
+    for i in $(seq ${n_search_tries}); do
       where="text %% '${search_word}'"
       echo "PGroonga: search: ${where}: ${i}"
       time run sudo -u postgres -H psql -d benchmark \
@@ -149,7 +150,7 @@ benchmark_search_pgroonga()
 benchmark_search_pg_bigm()
 {
   cat "${benchmark_dir}/search-words.list" | while read search_word; do
-    for i in $(seq ${n_tries}); do
+    for i in $(seq ${n_search_tries}); do
       where="text LIKE '%${search_word}%'"
       where=$(echo $where | sed -e "s/ OR /%' OR text LIKE '%/g")
       echo "pg_bigm: search: ${where}: ${i}"
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index