Commit 02b729ac authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

#3379 update benchmark with tokudb and bdb refs[t:3379]

git-svn-id: file:///svn/toku/tokudb@29769 c7de825b-a66e-492c-adef-691d508d4ae1
parent fdf7cdd3
...@@ -17,4 +17,4 @@ checknox: $(TARGETS) ...@@ -17,4 +17,4 @@ checknox: $(TARGETS)
./db-insert && ./db-scan --nox --lwc --prelock --prelockflag ./db-insert && ./db-scan --nox --lwc --prelock --prelockflag
clean: clean:
rm -rf $(TARGETS) bench.* rm -rf $(TARGETS) bench.* update.env.* insertm.env.*
...@@ -261,7 +261,11 @@ static void insert_all(DB_ENV *db_env, struct table *t, long nrows, long max_row ...@@ -261,7 +261,11 @@ static void insert_all(DB_ENV *db_env, struct table *t, long nrows, long max_row
} }
int main(int argc, char *argv[]) { int main(int argc, char *argv[]) {
char *db_env_dir = "putm.env"; #if defined(TOKDUB)
char *db_env_dir = "insertm.env.tokudb";
#else
char *db_env_dir = "insertm.env.bdb";
#endif
int db_env_open_flags = DB_CREATE | DB_PRIVATE | DB_INIT_MPOOL | DB_INIT_TXN | DB_INIT_LOCK | DB_INIT_LOG; int db_env_open_flags = DB_CREATE | DB_PRIVATE | DB_INIT_MPOOL | DB_INIT_TXN | DB_INIT_LOCK | DB_INIT_LOG;
long rows = 100000000; long rows = 100000000;
long rows_per_txn = 1000; long rows_per_txn = 1000;
......
...@@ -141,7 +141,11 @@ static void insert_and_update_all(DB_ENV *db_env, DB *db, long nrows, long max_r ...@@ -141,7 +141,11 @@ static void insert_and_update_all(DB_ENV *db_env, DB *db, long nrows, long max_r
} }
int main(int argc, char *argv[]) { int main(int argc, char *argv[]) {
char *db_env_dir = "update.env"; #if defined(TOKUDB)
char *db_env_dir = "update.env.tokudb";
#else
char *db_env_dir = "update.env.bdb";
#endif
int db_env_open_flags = DB_CREATE | DB_PRIVATE | DB_INIT_MPOOL | DB_INIT_TXN | DB_INIT_LOCK | DB_INIT_LOG; int db_env_open_flags = DB_CREATE | DB_PRIVATE | DB_INIT_MPOOL | DB_INIT_TXN | DB_INIT_LOCK | DB_INIT_LOG;
char *db_filename = "update.db"; char *db_filename = "update.db";
long rows = 100000000; long rows = 100000000;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment