edb40e012a
Remove legacy (0.5) API.
2018-01-07 14:08:27 +03:00
9b7baa550c
Merge branch '1.0'
2018-01-06 12:33:15 +03:00
b7ab36dd3d
Update copyrights.
2018-01-06 12:32:12 +03:00
7ee5776eff
Remove build dependency on xxd/vim-common.
2018-01-06 11:11:53 +03:00
09db2db521
Update copyright in sysbench.lua.
2018-01-02 21:48:55 +05:00
986000108a
Merge branch '1.0'
2018-01-02 20:11:05 +05:00
b7dd7e0781
fix the ret value by which we can stop benchmark in event
2018-01-02 20:08:36 +05:00
b877b5f986
Adds support for variable-length rand string
...
Adds a new random generator of variable-length strings:
```lua
s = sysbench.rand.varstring(10, 100)
```
"s" will be a string containing ASCII characters from '0' to 'z',
inclusive. It will be a length between 10 and 100 characters long.
Addresses GH Issue #17
2017-11-23 10:01:50 -05:00
dbcba59927
Merge branch '1.0'
2017-11-09 14:50:15 +03:00
06c7f55f24
Fix #178 : (--tables>1 --threads>1 broken in oltp_insert.lua)
...
A combination of --tables and --threads with non-default (i.e. higher
than 1) values resulted in incompleted set of tables generated by
"prepare" for the oltp_insert.lua script.
2017-11-09 12:35:17 +03:00
6c2e47ecd6
Add Zipfian distribution.
...
Zipfian distribution is now available and can be controlled via
--rand-type=zipfian, --rand-zipfian-exp.
2017-09-12 10:18:14 +03:00
b16976cf2e
Merge branch '1.0'
2017-09-12 10:13:40 +03:00
cd2b738022
Avoid PK conflicts in oltp_insert.lua by creating empty tables on 'prepare'.
2017-09-12 10:08:59 +03:00
bcebbb39ff
Merge branch '1.0'
2017-08-23 16:20:14 +03:00
305be15ebc
Fix #168 : oltp_delete.lua uses DELETE + INSERT statements
...
Remove INSERT statements from oltp_delete.lua.
2017-08-23 16:14:14 +03:00
e9b5f4b71e
Fix #167 : warmup maybe problem
...
Fix the --warmup-time option for the fileio test by replacing internal
counters in sb_fileio.c with sb_counters_t / sb_stat_t API used in other
benchmarks. As a result, checkpoints (and --warmup-time) now reset
fileio counters properly.
2017-08-21 18:53:01 +03:00
36e733922d
Merge upstream changes
2017-06-28 18:33:36 +02:00
009551f4e3
Use same defaults as built-in options
2017-06-28 18:28:06 +02:00
6f3a4690ff
Emit cumulative json reports
2017-06-28 18:26:44 +02:00
1e0c5b8cd1
Minor fix for prime-test.lua.
2017-06-28 19:20:35 +03:00
7312515be0
Add two examples of custom lua cpu tests
2017-06-28 17:20:07 +02:00
46f790b773
Merge branch '1.0'
2017-06-04 20:04:09 +03:00
6356e2b45e
Fix #139 : Json format has trailing comma
...
Remove a superfluous comma from the JSON reporter.
2017-06-04 20:03:17 +03:00
ce7770c626
Merge branch '1.0'
2017-03-12 10:46:59 +03:00
89ab44d50e
Fix #119 (oltp_insert.lua + --auto-inc=0 fails)
...
Fix oltp_insert.lua when run with --auto-inc disabled. Add regression tests.
2017-03-12 10:45:03 +03:00
2343e4bbe2
Merge branch '1.0'
2017-02-28 12:30:28 +03:00
9bd33c7e41
Fix grammar in help text for --skip-trx.
2017-02-28 12:30:10 +03:00
59d32c65c3
Merge branch '1.0'
2017-02-25 20:29:36 +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
eeb7fa19c4
Fix a syntax error in oltp_common.lua.
2017-02-14 14:23:37 +03:00
800f2e90e6
Rename the 'prewarm' command to 'warmup'. Keep the old name as an alias.
2017-02-14 14:09:52 +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
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
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
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
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
78ea2f6a5c
Close connection explicitly in bulk_insert.lua.
2017-01-30 17:16:21 +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
591c588fa7
Implement custom report hooks. Add CSV and JSON reporters as examples.
2017-01-29 23:46:43 +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