b4f3d22c38
Build on Illumos
2017-02-26 12:02:33 +03:00
1d40ad0e1c
Optimize random string generation in OLTP_RW.
...
Avoid Lua string management in OLTP_RW by introducing a new sql_param
method: set_rand_str(). Which calls sb_rand_str() in C code with a given
template string and a pre-allocated result buffer. In oltp_common.lua,
use set_rand_str() instead of allocating a new Lua string each time we
need a random string parameter for a prepared statement.
2017-02-25 19:57:55 +03:00
ba8b1d0781
Get rid of timers_mutex, improve --report-checkpoints scalability.
2017-02-14 20:53:08 +03:00
57b6f9d2b6
Correct a diagnostic message on index creation.
2017-02-08 22:46:28 +03:00
9c87d39700
Grammar fixes in a comment.
2017-02-08 21:45:51 +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
40c14789aa
Export mysql_drv_reconnect() to Lua SQL API.
2017-02-02 10:59:51 +03:00
9fdec9dccf
Rename sysbench.option_defs to sysbench.cmdline.options.
2017-02-01 19:31:53 +03:00
fdebeaffc3
Throw a more descriptive error when multiple DB drivers are available.
2017-02-01 19:03:13 +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
443a60bd28
Export histogram API to Lua.
2017-01-31 20:51:47 +03:00
5ad977b50f
Fix typo in sysbench.compat.lua.
2017-01-31 13:44:04 +03:00
a734561fa5
Check for command in OLTP scripts.
...
Check for the required command argument in oltp_common.lua and provide
list of supported commands when missing.
2017-01-31 13:35:41 +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
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
d3e28b3dc2
Use a proper method to disconnect a connection.
2017-01-30 17:44:19 +03:00
4eff9c4dc1
Close connections explicitly in OLTP scripts.
2017-01-30 17:29:47 +03:00
cdc450a258
Fix a comment typo.
2017-01-30 17:24:56 +03:00
78ea2f6a5c
Close connection explicitly in bulk_insert.lua.
2017-01-30 17:16:21 +03:00
1363264c61
Handle more cases where drv_pgsql.c may leak memory.
2017-01-30 16:04:39 +03:00
55aca14d92
Add a missing PQclear() call in pgsql_drv_bind_param().
2017-01-30 15:22:21 +03:00
ca0da79d82
Call PQclear() for non-SELECT queries explicitly in drv_pgsql.c.
2017-01-30 15:13:05 +03:00
b9dab8c0f5
Also close BEGIN/COMMIT statements in oltp_common.lua.
2017-01-30 14:44:34 +03:00
61a167354b
Close prepared statements in OLTP scripts.
2017-01-30 14:24:05 +03:00
419be9f8ea
Properly close/deallocate connections on 'prepare'.
2017-01-30 13:54:15 +03:00
7c43653e4f
Fix memory leaks in drv_pgsql.c.
2017-01-30 13:35:00 +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
36bc3672a0
Small formatting fixes.
2017-01-29 20:42:42 +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
12e56538f3
Parallel 'prepare' and 'prewarm' (MySQL-only) commands for OLTP benchmarks.
2017-01-28 17:55:29 +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