bf94de28f6
Support building with bundled LuaJIT.
2016-03-20 01:38:36 +03:00
536c663b3a
Squashed 'third_party/luajit/luajit/' content from commit 6cb38f7
...
git-subtree-dir: third_party/luajit/luajit
git-subtree-split: 6cb38f788f58d642d1b9198aace947e00f1dc2d8
2016-03-19 20:36:26 +03:00
dec6b9b9e3
Merge commit '536c663b3aef2d114a2083feef33e356ff354ac2' as 'third_party/luajit/luajit'
2016-03-19 20:36:26 +03:00
04d5fa0d27
Merge pull request #26 from Marc-T/1.0
...
Rand for Windows
2016-03-18 16:49:11 +04:00
39f069877f
Fix CMakeLists
2016-03-18 11:49:05 +01:00
333b62360d
Rand for Windows
...
- Secure rand_s function
- Microsoft TLS implementation for sb_rng_state
2016-03-18 11:34:16 +01:00
3650f38bbf
Merge branch '0.5' into 1.0
2016-03-18 12:51:49 +03:00
57e62669b9
Fixes #25 : Include database-related command line options in help
...
Call db_print_help() from print_help() + some cosmetic help changes.
2016-03-18 12:50:41 +03:00
f1acc1bbb6
Merge pull request #24 from Marc-T/1.0
...
Fix pthread_self return type
2016-03-18 13:00:23 +04:00
5d404c37df
Fix pthread_self return type
...
Fix pthread_self(void) return type
>> int > pthread_t
2016-03-18 09:54:36 +01:00
c47ae9e873
Merge branch '0.5' into 1.0
2016-03-18 00:18:34 +03:00
1b5e5619cc
Fix barrier error reporting.
2016-03-18 00:17:36 +03:00
b79051e89c
Merge branch '0.5' into 1.0
2016-03-17 15:38:30 +03:00
2cdd46e2a2
Fixes #22 : Timers and reporting thread should wait for worker thread to be initialized
...
A barrier is now used by worker and background threads and the main
thread to make sure all threads have initialized before executing
events. If some threads fail to initialize within a timeout (hard-coded
to 30 seconds for now), bail out with an error message.
2016-03-17 15:36:23 +03:00
06aa4d2d6b
Fix the issue when threads running < num_threads
2016-03-17 00:28:43 -04:00
1184aff06b
Merge branch '1.0' into luajit
2016-03-09 23:45:39 +03:00
6fc8133a90
Take 'set -e' into account when checking for pkg-config.
2016-03-07 20:42:19 +03:00
ba0fddb088
Check if pkg-config is available and throw an error if it's not in autogen.sh
2016-03-07 20:20:41 +03:00
4ad92418c6
Fix compatibility with Autoconf 2.63 broken by adding ax_tls.m4.
2016-02-25 18:00:46 +08:00
03df5c0a6f
Fix error message when a TCP connection fails.
2016-02-25 12:03:53 +08:00
7414d441fe
Fix --mysql-host broken by the previous commit.
2016-02-25 11:44:06 +08:00
9922dd99ed
Allow --mysql-port to be a list.
...
Allow --mysql-port to be a list rather than just a single value similar
to --mysql-host. When both --mysql-host and --mysql-port are specified
as lists of values, when creating connections first iterate on ports
with the current host, then move to the next host in the list.
2016-02-25 11:01:58 +08:00
1c9ddea0e2
Properly initialize thread-local RNG state.
2016-02-24 21:34:19 +08:00
a7d9d4409b
Add a missing #include.
2016-02-24 16:07:21 +08:00
e75ca57ee0
Add a missing '\'.
2016-02-24 16:01:38 +08:00
e24a028409
Fixes #18 : lrand48() is not thread-safe
...
and
LP#1412488: lrand48() doesn't scale well on highly concurrent platforms
Use re-entrant versions of standard RNG functions with thread-local
states. Seed thread-local RNGs from the RNG of the thread invoking
sb_thread_create() (i.e. the main thread).
The main thread RNG is now always seeded from timer, unless --rand-seed
is specified. Which obsoletes --rand-init, so it has been removed.
2016-02-24 00:26:30 +08:00
3e0a29c57f
Merge branch '0.5' into 1.0
2016-02-23 15:14:47 +08:00
1c812ad6dd
Fixes #17 : Lua script without DB access crashes sysbench.
...
Only call sb_percentile_update() if the DB driver has been initialized.
2016-02-23 11:58:28 +08:00
288aec57a1
Update copyrights and FSF address.
2016-02-21 23:39:18 +08:00
c451cd963b
Update GPLv2 text in COPYING with the current version from https://gnu.org/licenses/gpl-2.0.txt .
2016-02-21 23:39:08 +08:00
909bc10551
Bump version for the 1.0 branch and fix email address to report bugs.
2016-02-21 21:18:54 +08:00
546349768a
Fix mutex_get_request() signature.
2016-02-21 21:15:42 +08:00
11603c917d
Initial LuaJIT support: build with system libluajit.
2016-02-21 21:12:45 +08:00
612decfceb
Update copyrights and FSF address.
2016-02-20 21:05:50 +08:00
6d521c3ea8
Update GPLv2 text in COPYING with the current version from https://gnu.org/licenses/gpl-2.0.txt .
2016-02-20 20:05:03 +08:00
0accfd7206
Update oltp.lua
2016-02-03 12:21:41 -08:00
7ec8a14c5e
Update common.lua
...
Add control defaults for oltp_delete_inserts and oltp_range_selects.
2016-02-03 12:18:36 -08:00
ae295825ef
Update oltp.lua
...
Added new controls around range select operations (oltp_range_selects) and delete/insert operations (oltp_delete_inserts).
2016-02-03 12:15:31 -08:00
5ede7f5b28
Use mysql_config --libs_r
instead of mysql_config --libs | sed
.
2016-02-03 20:01:46 +03:00
85889df1ce
Print the number of actually running threads instead of the configured
...
--num-threads value for intermediate reports. This can make a big
difference with network benchmarks to diagnose TCP-related issues like
SYN flood protection, throttling, backlog issues, etc.
2015-11-26 11:52:51 +08:00
d4a30a331a
Minor cleanups in bulk_insert.lua.
2015-11-05 19:08:37 +03:00
d6699439d8
Some minor improvements to bulk_insert.lua
2015-11-03 18:47:20 +03:00
43cb35e248
In the MySQL driver, print error number and text before the query text, as printing them after complicates troubleshooting for really long queries.
2015-11-03 17:08:35 +03:00
e55a12b88c
Fix table creation/removal loop ranges.
2015-11-03 16:41:02 +03:00
aa52781b7c
Moved table creation to the prepare method.
2015-11-03 16:37:48 +03:00
f325955b0c
Use DROP TABLE IF EXISTS when cleaning up.
2015-11-03 16:25:23 +03:00
057e143b27
Use mysql_config --libs_r
instead of mysql_config --libs | sed
.
2015-11-03 00:11:51 +03:00
0bf454200d
Bulk insert test.
2015-11-02 23:14:29 +03:00
064736860b
Properly use the PostgreSQL sequence in insert.lua when oltp_auto_inc is on.
2015-10-13 23:08:55 +03:00
5aa550c00f
Fixed a compiler warning by removing a stray struct initializer.
2015-10-13 22:51:06 +03:00