Refactor of mysql_vs_redis benchmark test.