d2bc5d50f8
Fix warning in 32-bit builds.
2017-03-13 14:38:25 +03:00
ba8b1d0781
Get rid of timers_mutex, improve --report-checkpoints scalability.
2017-02-14 20:53:08 +03:00
08e5b4fa9e
Add a new line to an error message.
2017-02-02 23:32:46 +03:00
8359466dc7
Properly set the allocated array to 0 in sb_alloc_per_thread_array().
2017-02-02 17:03:26 +03:00
d156b9b21f
Exclude queries executed by background threads from statistic reports.
2017-02-02 15:25:54 +03:00
4a755b1c5d
Make the default intermediate reports format a little more terse.
2017-02-01 18:57:37 +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
788fcbb30b
Rename --max-requests to --events, --max-time to --time.
...
Print warnings if old names are used, but accept them for compatibility.
2017-02-01 17:20:22 +03:00
8f227f64b3
Rename --tx-rate to --rate, keep --tx-rate as a deprecated alias.
2017-02-01 16:28:14 +03:00
2a3ca019cb
if the test name on the command line is "-", read Lua script from the standard input.
2017-02-01 10:56:05 +03:00
d017ae0c85
Support the deprecated --test option for compatibility with legacy scripts.
2017-02-01 10:10:27 +03:00
abb3f55a5f
Export command line arguments + command name to sysbench.cmdline.
2017-01-31 12:52:59 +03:00
c1803286b0
Silence compiler warnings.
2017-01-30 21:45:58 +03:00
efb168643f
Reimplement tx_rate with lockless bounded FIFO provided by ConcurrencyKit.
2017-01-30 21:26:55 +03:00
419be9f8ea
Properly close/deallocate connections on 'prepare'.
2017-01-30 13:54:15 +03:00
5d36164b98
Cleanup per-thread Lua contexts on exit.
2017-01-30 10:16:23 +03:00
6eb5ede654
Fix a Lua state leak on script termination.
2017-01-30 08:48:26 +03:00
34eb53d425
Initialize PRNG for background threads.
2017-01-29 20:15:20 +03:00
1d9f824b34
Fix format specifier for stat->events.
2017-01-29 20:12:39 +03:00
04b4f756d9
Refactor stats reporting to make custom reports possible.
2017-01-29 19:32:14 +03:00
bc531b28ad
Get rid of report_interval_mutex.
2017-01-29 14:18:35 +03:00
1cf5b33eda
Move counters code from db_driver.c to sb_counter.c.
2017-01-29 13:45:26 +03:00
2a2cd817b9
Silence spurious uninitialized value warnings.
2017-01-28 21:24:13 +03:00
49aa0b4322
Fixes #78 : better error hints for missing help command
...
Now if the help command is specified for a script, sysbench first check
if the script impelements a custom help command, and calls it. If no
custom command is defined, it checks whether the script declares any
command line options, in which case it prints their description. If
neither the help() function nor an option declaration is available,
sysbench prints an error message.
2017-01-28 16:20:29 +03:00
49016568ba
Implement custom commands + parallel custom commands.
2017-01-28 15:45:16 +03:00
f25422c813
When joining worker threads, decrement sb_globals.num_running atomically.
2017-01-28 14:12:49 +03:00
182743ffee
FIx sporadic cmdline.t failures.
2017-01-27 12:50:50 +03:00
06d4f99cb6
Rename the 'sysbench' subdirectory to 'src'.
2017-01-27 09:39:28 +03:00