Commit Graph

21 Commits

Author SHA1 Message Date
a880fc4bcc Make sysbench.opt available to init()/done() by exporting it to global Lua state. 2017-09-15 20:43:28 +03:00
66a410b192 Fix db_connect() in legacy API to initialize db_driver properly.
Fixes #146.
2017-06-07 22:09:55 +03:00
480c34c33b Report errors thrown by the script properly with the 'sysbench modulename' syntax. 2017-04-02 10:42:01 +03:00
fb7e62db24 Allow benchmarks to be specified as a module name, i.e. a require() argument. 2017-03-31 13:52:55 +03:00
05f2a8e87b Fix #118: Build fails on i686 when using system ck
Provide compatibility wrappers for system (i.e. distribution-provided)
ConcurrencyKit on i386. Unlike bundled ConcurrencyKit, older versions
that may be provided by distributions do not support CK_USE_CC_BUILTINS,
which makes implementing 64-bit atomics impossible on x86 (32-bit).

Detect if 64-bit atomics are not provided at compile stage and if so,
resort to GCC builtin implementations.
2017-03-13 14:38:19 +03:00
9fdec9dccf Rename sysbench.option_defs to sysbench.cmdline.options. 2017-02-01 19:31:53 +03:00
7f56e219f7 Rename --num-threads to --threads.
Accept the old name with a warning for compatibility.
2017-02-01 17:42:39 +03:00
443a60bd28 Export histogram API to Lua. 2017-01-31 20:51:47 +03:00
094c15d555 Make sysbench.cmdline.argv available from the master thread. 2017-01-31 13:21:57 +03:00
abb3f55a5f Export command line arguments + command name to sysbench.cmdline. 2017-01-31 12:52:59 +03:00
efb168643f Reimplement tx_rate with lockless bounded FIFO provided by ConcurrencyKit. 2017-01-30 21:26:55 +03:00
dbce3039a7 Do not create duplicate connections in sb_lua_db_connect(). 2017-01-30 11:32:11 +03:00
5d36164b98 Cleanup per-thread Lua contexts on exit. 2017-01-30 10:16:23 +03:00
83b0617ee9 Deallocate TLS context when closing the Lua state. 2017-01-30 08:54:50 +03:00
6eb5ede654 Fix a Lua state leak on script termination. 2017-01-30 08:48:26 +03:00
591c588fa7 Implement custom report hooks. Add CSV and JSON reporters as examples. 2017-01-29 23:46:43 +03:00
04b4f756d9 Refactor stats reporting to make custom reports possible. 2017-01-29 19:32:14 +03:00
1cf5b33eda Move counters code from db_driver.c to sb_counter.c. 2017-01-29 13:45:26 +03:00
12e56538f3 Parallel 'prepare' and 'prewarm' (MySQL-only) commands for OLTP benchmarks. 2017-01-28 17:55:29 +03:00
49016568ba Implement custom commands + parallel custom commands. 2017-01-28 15:45:16 +03:00
06d4f99cb6 Rename the 'sysbench' subdirectory to 'src'. 2017-01-27 09:39:28 +03:00