Commit Graph

  • f964f5bc1c Update ChangeLog for the 1.0.0 release. Alexey Kopytov 2017-02-03 13:29:17 +03:00
  • 08e5b4fa9e Add a new line to an error message. Alexey Kopytov 2017-02-02 23:32:46 +03:00
  • 8359466dc7 Properly set the allocated array to 0 in sb_alloc_per_thread_array(). Alexey Kopytov 2017-02-02 17:03:26 +03:00
  • d156b9b21f Exclude queries executed by background threads from statistic reports. Alexey Kopytov 2017-02-02 15:25:54 +03:00
  • 40c14789aa Export mysql_drv_reconnect() to Lua SQL API. Alexey Kopytov 2017-02-02 10:59:51 +03:00
  • 12b3405c6a Move to semantic versioning scheme, set version to 1.0.0. Alexey Kopytov 2017-02-02 01:39:33 +03:00
  • 9fdec9dccf Rename sysbench.option_defs to sysbench.cmdline.options. Alexey Kopytov 2017-02-01 19:31:53 +03:00
  • b5b1878740 Fix opt_report_interval.t. Alexey Kopytov 2017-02-01 19:31:40 +03:00
  • fdebeaffc3 Throw a more descriptive error when multiple DB drivers are available. Alexey Kopytov 2017-02-01 19:03:13 +03:00
  • 4a755b1c5d Make the default intermediate reports format a little more terse. Alexey Kopytov 2017-02-01 18:57:37 +03:00
  • 7f56e219f7 Rename --num-threads to --threads. Alexey Kopytov 2017-02-01 17:42:39 +03:00
  • 788fcbb30b Rename --max-requests to --events, --max-time to --time. Alexey Kopytov 2017-02-01 17:20:22 +03:00
  • 8f227f64b3 Rename --tx-rate to --rate, keep --tx-rate as a deprecated alias. Alexey Kopytov 2017-02-01 16:28:14 +03:00
  • dd19f10b93 Remove --test from documentation. Alexey Kopytov 2017-02-01 11:33:34 +03:00
  • 2a3ca019cb if the test name on the command line is "-", read Lua script from the standard input. Alexey Kopytov 2017-02-01 10:56:05 +03:00
  • d017ae0c85 Support the deprecated --test option for compatibility with legacy scripts. Alexey Kopytov 2017-02-01 10:10:27 +03:00
  • 443a60bd28 Export histogram API to Lua. Alexey Kopytov 2017-01-31 20:51:47 +03:00
  • 217463c6b2 Really fix api_basic.t. Alexey Kopytov 2017-01-31 14:25:52 +03:00
  • cb12882e54 Fix api_basic.t. Alexey Kopytov 2017-01-31 13:47:46 +03:00
  • 5ad977b50f Fix typo in sysbench.compat.lua. Alexey Kopytov 2017-01-31 13:44:04 +03:00
  • a734561fa5 Check for command in OLTP scripts. Alexey Kopytov 2017-01-31 13:35:41 +03:00
  • 094c15d555 Make sysbench.cmdline.argv available from the master thread. Alexey Kopytov 2017-01-31 13:21:57 +03:00
  • abb3f55a5f Export command line arguments + command name to sysbench.cmdline. Alexey Kopytov 2017-01-31 12:52:59 +03:00
  • 8bb1296ea9 Temporarily disable LeakSanitizer builds in Travis. Alexey Kopytov 2017-01-31 09:25:56 +03:00
  • 2968b52920 Temporarily disable clang 3.6. Alexey Kopytov 2017-01-31 08:29:23 +03:00
  • c1803286b0 Silence compiler warnings. Alexey Kopytov 2017-01-30 21:45:58 +03:00
  • efb168643f Reimplement tx_rate with lockless bounded FIFO provided by ConcurrencyKit. Alexey Kopytov 2017-01-30 21:26:55 +03:00
  • d3e28b3dc2 Use a proper method to disconnect a connection. Alexey Kopytov 2017-01-30 17:44:19 +03:00
  • 4eff9c4dc1 Close connections explicitly in OLTP scripts. Alexey Kopytov 2017-01-30 17:29:47 +03:00
  • cdc450a258 Fix a comment typo. Alexey Kopytov 2017-01-30 17:24:50 +03:00
  • 78ea2f6a5c Close connection explicitly in bulk_insert.lua. Alexey Kopytov 2017-01-30 17:16:21 +03:00
  • 1363264c61 Handle more cases where drv_pgsql.c may leak memory. Alexey Kopytov 2017-01-30 16:04:39 +03:00
  • 55aca14d92 Add a missing PQclear() call in pgsql_drv_bind_param(). Alexey Kopytov 2017-01-30 15:22:21 +03:00
  • ca0da79d82 Call PQclear() for non-SELECT queries explicitly in drv_pgsql.c. Alexey Kopytov 2017-01-30 15:13:05 +03:00
  • b9dab8c0f5 Also close BEGIN/COMMIT statements in oltp_common.lua. Alexey Kopytov 2017-01-30 14:44:34 +03:00
  • 61a167354b Close prepared statements in OLTP scripts. Alexey Kopytov 2017-01-30 14:24:05 +03:00
  • 419be9f8ea Properly close/deallocate connections on 'prepare'. Alexey Kopytov 2017-01-30 13:54:15 +03:00
  • 7c43653e4f Fix memory leaks in drv_pgsql.c. Alexey Kopytov 2017-01-30 13:35:00 +03:00
  • dbce3039a7 Do not create duplicate connections in sb_lua_db_connect(). Alexey Kopytov 2017-01-30 11:31:50 +03:00
  • 5d36164b98 Cleanup per-thread Lua contexts on exit. Alexey Kopytov 2017-01-30 10:16:23 +03:00
  • 83b0617ee9 Deallocate TLS context when closing the Lua state. Alexey Kopytov 2017-01-30 08:54:50 +03:00
  • 6eb5ede654 Fix a Lua state leak on script termination. Alexey Kopytov 2017-01-30 08:48:26 +03:00
  • ba312d33fb Revert GCC-related changes from the previous commit. Alexey Kopytov 2017-01-30 08:30:10 +03:00
  • bcf79d01e7 Use more recent clang and gcc versions. Alexey Kopytov 2017-01-30 08:21:32 +03:00
  • a4b9f54948 Require sudo in .travis.yml. Alexey Kopytov 2017-01-30 08:09:41 +03:00
  • ae92b6f45f Update .travis.yml to Ubuntu Trusty. Alexey Kopytov 2017-01-30 08:02:24 +03:00
  • 591c588fa7 Implement custom report hooks. Add CSV and JSON reporters as examples. Alexey Kopytov 2017-01-29 23:45:55 +03:00
  • 36bc3672a0 Small formatting fixes. Alexey Kopytov 2017-01-29 20:42:42 +03:00
  • 34eb53d425 Initialize PRNG for background threads. Alexey Kopytov 2017-01-29 20:15:20 +03:00
  • 1d9f824b34 Fix format specifier for stat->events. Alexey Kopytov 2017-01-29 20:12:39 +03:00
  • 04b4f756d9 Refactor stats reporting to make custom reports possible. Alexey Kopytov 2017-01-29 19:32:14 +03:00
  • bc531b28ad Get rid of report_interval_mutex. Alexey Kopytov 2017-01-29 14:18:35 +03:00
  • 1cf5b33eda Move counters code from db_driver.c to sb_counter.c. Alexey Kopytov 2017-01-29 13:45:26 +03:00
  • 2a2cd817b9 Silence spurious uninitialized value warnings. Alexey Kopytov 2017-01-28 21:24:13 +03:00
  • 12e56538f3 Parallel 'prepare' and 'prewarm' (MySQL-only) commands for OLTP benchmarks. Alexey Kopytov 2017-01-28 17:55:29 +03:00
  • 49aa0b4322 Fixes #78: better error hints for missing help command Alexey Kopytov 2017-01-28 16:20:29 +03:00
  • 49016568ba Implement custom commands + parallel custom commands. Alexey Kopytov 2017-01-28 15:45:16 +03:00
  • f25422c813 When joining worker threads, decrement sb_globals.num_running atomically. Alexey Kopytov 2017-01-28 14:12:49 +03:00
  • 74d14e764c Signal an error on unknown error codes in drv_pgsql.c. Alexey Kopytov 2017-01-27 21:00:06 +03:00
  • 253dcc4c27 Remove unused function checks from configure.ac. Alexey Kopytov 2017-01-27 19:00:56 +03:00
  • c9155686b7 Fix syntax error in sysbench.lua. Alexey Kopytov 2017-01-27 17:59:10 +03:00
  • a5b7f22275 Simplify condition in sysbench.lua:thread_run(). Alexey Kopytov 2017-01-27 16:05:29 +03:00
  • 8d5652699d Fix a typo. Alexey Kopytov 2017-01-27 15:50:45 +03:00
  • 8c4f6f09d5 Remove unnecessary 'local' declarations in oltp_common.lua. Alexey Kopytov 2017-01-27 15:41:25 +03:00
  • b8745c8a22 Make bundled OLTP Lua scripts executable, add hashbangs. Alexey Kopytov 2017-01-27 14:24:43 +03:00
  • 182743ffee FIx sporadic cmdline.t failures. Alexey Kopytov 2017-01-27 12:50:50 +03:00
  • fa3d2a80d2 Silence spurious error messages on 'make install'. Alexey Kopytov 2017-01-27 11:51:05 +03:00
  • 06d4f99cb6 Rename the 'sysbench' subdirectory to 'src'. Alexey Kopytov 2017-01-27 09:39:28 +03:00
  • aa5af68938 Move legacy API to sysbench.compat.lua. Alexey Kopytov 2017-01-26 23:57:54 +03:00
  • a3b4c0610e Add option declarations to OLTP tests. Alexey Kopytov 2017-01-26 14:35:01 +03:00
  • 2c5638ff9e Remove TODO. Alexey Kopytov 2017-01-26 04:33:57 +03:00
  • 9d73ed0865 Allow Lua scripts to declare supported options. Alexey Kopytov 2017-01-26 04:23:55 +03:00
  • 2cda228c7e Command line options refactoring: Alexey Kopytov 2017-01-25 19:09:44 +03:00
  • d8e2144ea9 Fix typo in a help string. Alexey Kopytov 2017-01-25 17:16:14 +03:00
  • a4218987cb Fix help_drv_*.t tests broken by the command line syntax change. Alexey Kopytov 2017-01-25 16:22:49 +03:00
  • 48375407fa Grammar fixes. Alexey Kopytov 2017-01-25 11:04:56 +03:00
  • 96a1ed4049 Adjust cmdline.t to pass on slower machines. Alexey Kopytov 2017-01-25 01:49:51 +03:00
  • 4cf5884ac9 Use cache-aligned allocation for thread_stats. Alexey Kopytov 2017-01-25 01:04:04 +03:00
  • 45e219d038 Change the command line syntax: remove the --test option. Alexey Kopytov 2017-01-25 00:02:59 +03:00
  • d2b494ac2d Revert .travis.yml changes. Alexey Kopytov 2017-01-23 23:22:11 +03:00
  • dec61a10e0 Exclude excessive OS combinations from Travis build matrix. Alexey Kopytov 2017-01-23 23:16:25 +03:00
  • 5852c405ff Fix api_sql_mysql.t. Alexey Kopytov 2017-01-23 23:16:12 +03:00
  • 55e8129e26 Add more Linux distributions to the build matrix. Alexey Kopytov 2017-01-23 23:09:15 +03:00
  • deb4994144 Fix prepared statements for PostgreSQL driver. Alexey Kopytov 2017-01-23 22:51:58 +03:00
  • 0e49aa1edb Set LUA_PATH in test_run.sh to point to Lua scripts directory. Alexey Kopytov 2017-01-23 21:03:56 +03:00
  • e53815173d Simplify ugly require/dofile constructs in OLTP scripts. Alexey Kopytov 2017-01-23 20:58:51 +03:00
  • 90737c5833 Do not crash if db_prepare fails with an error. Alexey Kopytov 2017-01-23 20:56:52 +03:00
  • ec43211135 Replace lua_pushstring() with lua_pushliteral() where possible. Alexey Kopytov 2017-01-23 17:48:09 +03:00
  • d89df214f7 Export sysbench.version and sysbench.version_string to Lua. Alexey Kopytov 2017-01-23 14:11:41 +03:00
  • cf6e8645fd Travis CI portability fixes for api_sql_pgsql.t. Alexey Kopytov 2017-01-23 10:42:48 +03:00
  • 48ea461dd3 Re-enable api_sql_pgsql.t. Alexey Kopytov 2017-01-23 10:12:39 +03:00
  • 29c0299aef Convert OLTP scripts to prepared statements. Alexey Kopytov 2017-01-23 03:32:27 +03:00
  • 4e7d6d87ca Move tx_rate check from thread_run() to sb_event_stop(). Alexey Kopytov 2017-01-22 11:17:44 +03:00
  • b179d21849 Change max_requests and max_time_ns in sb_globals_t to uint64_t. Alexey Kopytov 2017-01-22 11:11:18 +03:00
  • 45830f9cd0 Optimizations and cleanups around sb_next_event(). Alexey Kopytov 2017-01-22 10:45:08 +03:00
  • 21a28231ad Convert main loop functions to FFI. Alexey Kopytov 2017-01-22 09:26:53 +03:00
  • 7ddab2dcff Fix api_sql_mysql.t to work with older MySQL versions. Alexey Kopytov 2017-01-21 17:19:59 +03:00
  • cdabf72b7b Implement customer error hooks. Alexey Kopytov 2017-01-21 16:58:38 +03:00
  • 609f7c4db3 Pass SQL state to Lua in case of errors. Alexey Kopytov 2017-01-20 10:54:01 +03:00
  • dbb7bbfcd1 Implement error propagation. Alexey Kopytov 2017-01-20 02:43:08 +03:00