Skip to content

Commit

Permalink
Set charset
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Feb 8, 2016
1 parent d8a769e commit 5be3d84
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions benchmark/centos7/mysql.sh
Expand Up @@ -193,7 +193,8 @@ benchmark_search_mroonga()
for i in $(seq ${n_search_tries}); do
where="MATCH(title, text) AGAINST('*D+ ${search_word}' IN BOOLEAN MODE)"
echo "Mroonga: search: ${where}: ${i}:"
time run mysql -u root ${mroonga_db} \
time run mysql --default-character-set=utf8mb4 \
-u root ${mroonga_db} \
-e "SELECT SQL_NO_CACHE COUNT(*) FROM wikipedia WHERE ${where}"
done
done
Expand All @@ -208,7 +209,8 @@ benchmark_search_innodb()
query=$(echo ${search_word} | sed -e "s/ OR / /g")
where="MATCH(title, text) AGAINST('${query}' IN BOOLEAN MODE)"
echo "InnoDB: search: ${where}: ${i}:"
time mysql -u root ${innodb_db} \
time mysql --default-character-set=utf8mb4 \
-u root ${innodb_db} \
-e "SELECT SQL_NO_CACHE COUNT(*) FROM wikipedia WHERE ${where}"
done
done
Expand Down

0 comments on commit 5be3d84

Please sign in to comment.