Commit Graph

11 Commits

Author SHA1 Message Date
a0658f09ce Memory benchmark optimizations.
Optimize the memory benchmark:
- get rid of the global mutex to calculate statistics
- remove if() and switch() branches on critical code paths
- align memory blocks to OS page size
- use native machine word size instead of 'int'
2017-03-29 21:02:07 +03:00
d156b9b21f Exclude queries executed by background threads from statistic reports. 2017-02-02 15:25:54 +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
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
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
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
06d4f99cb6 Rename the 'sysbench' subdirectory to 'src'. 2017-01-27 09:39:28 +03:00