Richard Brooksby
2aacdd3867
Using os-provided getopt_long where available, since it doesn't compile cleanly on os x.
...
The getopt_long code promises that the argv array is const, but permutes it. (This problem is mentioned in the man page.) We have trouble getting this past our strict compiler options, especially under Xcode.
Copied from Perforce
Change: 188909
ServerID: perforce.ravenbrook.com
2016-01-14 17:34:49 +00:00
Gareth Rees
c968255f1e
Ensure that code of the form if (condition) statement; is split over two lines, so that it is possible to set a breakpoint on the statement in a debugger.
...
This change was agreed in 1997 (see <https://info.ravenbrook.com/project/mps/mail/1997/08/19/13-44/0.txt >), so it's about time it was implemented.
Copied from Perforce
Change: 187071
ServerID: perforce.ravenbrook.com
2014-09-27 22:57:02 +01:00
Gareth Rees
21f6addf6c
Rename mps_class_t to mps_pool_class_t for clarity.
...
Retain a typedef for mps_class_t for backwards compatibility.
Copied from Perforce
Change: 187065
ServerID: perforce.ravenbrook.com
2014-09-27 13:37:38 +01:00
Gareth Rees
716bb331b9
Use the nelems macro to compute the size of arrays.
...
Copied from Perforce
Change: 187055
ServerID: perforce.ravenbrook.com
2014-09-26 21:35:25 +01:00
Gareth Rees
b051feca68
Benchmarks need to abort on the first assertion hit, even in the hot variety, to assist with debugging.
...
Copied from Perforce
Change: 186787
ServerID: perforce.ravenbrook.com
2014-07-02 11:40:23 +01:00
Gareth Rees
916a40c8f2
Avoid warnings from xcode for string literals that exceed the portable limit.
...
Copied from Perforce
Change: 186632
ServerID: perforce.ravenbrook.com
2014-06-14 16:18:50 +01:00
Gareth Rees
1dd8a0fa26
Merge branch/2014-06-11/grain into branch/2014-05-28/align.
...
Copied from Perforce
Change: 186561
ServerID: perforce.ravenbrook.com
2014-06-13 13:35:14 +01:00
Gareth Rees
19d54fb5e5
Add -a (arena alignment) argument to djbench and gcbench.
...
Copied from Perforce
Change: 186374
ServerID: perforce.ravenbrook.com
2014-05-30 13:03:06 +01:00
Gareth Rees
383d510d31
In light of performance findings, boost the default arena size to 256 mb. add a -m option to djbench so that we can test the effect of setting the initial arena size on the manual pool classes.
...
Copied from Perforce
Change: 186224
ServerID: perforce.ravenbrook.com
2014-05-20 23:25:03 +01:00
Gareth Rees
9c8713f51b
Fix problems found by coverity. see < https://info.ravenbrook.com/mail/2014/04/10/23-23-42/0/ > for full analysis.
...
Copied from Perforce
Change: 185445
ServerID: perforce.ravenbrook.com
2014-04-11 00:26:48 +01:00
Gareth Rees
3f50055416
Fix bugs in exposet0.c and steptest.c on windows.
...
Port djbench and gcbench to Windows.
Run amcssth and awlutth test cases on Windows.
Copied from Perforce
Change: 185354
ServerID: perforce.ravenbrook.com
2014-04-08 16:26:27 +01:00
Gareth Rees
e45793ce57
New header testthr.h provides simple threading interface.
...
Implementations testthrix.c for Unix and testthrw3.c for Windows.
Multi-threaded test cases use the new interface.
Rename lockutw3 to lockut (no longer Windows-specific).
Run multi-threaded test cases on Windows and lockut elsewhere.
Copied from Perforce
Change: 185350
ServerID: perforce.ravenbrook.com
2014-04-08 15:14:32 +01:00
Richard Brooksby
2b9719e4bd
Catch-up merge from master.
...
Copied from Perforce
Change: 184732
ServerID: perforce.ravenbrook.com
2014-03-11 16:30:47 +00:00
Gareth Rees
cf4d9b0596
Ensure that djbench and gcbench compile on freebsd:
...
Link fmtdy with gcbench.
RESERVE_ALLOC in djbench ignores the return values from mps_reserve and mps_commit.
Don't include alloca.h -- alloca is in stdlib.h.
Rename start, finish to begin, end to avoid "local variable shadows global" error from gcc.
Copied from Perforce
Change: 184691
ServerID: perforce.ravenbrook.com
2014-03-08 00:36:32 +00:00
Gareth Rees
d2b6956f6a
Add locbwcss and locusss to the test suite on os x, freebsd and linux.
...
Add const qualifier so that locbwcss and locusss compile without warnings.
Build djbench and gcbench on FreeBSD and Linux.
Don't include <alloca.h> -- alloca is in stdlib.h.
Copied from Perforce
Change: 184689
ServerID: perforce.ravenbrook.com
2014-03-08 00:24:04 +00:00
Richard Brooksby
4eec2493b7
Adding a keyword to the arena to disable zoned allocation.
...
Copied from Perforce
Change: 184599
ServerID: perforce.ravenbrook.com
2014-02-28 13:20:06 +00:00
Gareth Rees
6971bee496
Make mps_args_done obsolete.
...
Copied from Perforce
Change: 184543
ServerID: perforce.ravenbrook.com
2014-02-26 12:47:27 +00:00
Richard Brooksby
f91a987e32
Inclusion order mysteriously prevents profiling under xcode.
...
Copied from Perforce
Change: 184111
ServerID: perforce.ravenbrook.com
2014-01-24 16:00:49 +00:00
Richard Brooksby
f2e1e2c6c9
Adding multi-threading to djbench in order to test performance with thread contention.
...
Copied from Perforce
Change: 182778
ServerID: perforce.ravenbrook.com
2013-06-16 21:20:29 +01:00
Richard Brooksby
8373da6f37
Adding recursion factor and repeatable random number seeding to dj benchmark.
...
Copied from Perforce
Change: 182776
ServerID: perforce.ravenbrook.com
2013-06-16 18:59:54 +01:00
Richard Brooksby
aff479d7b3
Adding leader comment description, copyright, and license.
...
Copied from Perforce
Change: 182775
ServerID: perforce.ravenbrook.com
2013-06-16 15:36:17 +01:00
Richard Brooksby
48e588a2ba
Tidying up djbench and merging into a single file rather than relying on #include hacks.
...
Copied from Perforce
Change: 182774
ServerID: perforce.ravenbrook.com
2013-06-16 15:32:43 +01:00
Richard Brooksby
ba500b5efc
Improving usage message.
...
Copied from Perforce
Change: 182772
ServerID: perforce.ravenbrook.com
2013-06-16 00:55:41 +01:00
Richard Brooksby
2756eb868b
Fixing parsing of -s and -r options.
...
Copied from Perforce
Change: 182768
ServerID: perforce.ravenbrook.com
2013-06-16 00:38:06 +01:00
Richard Brooksby
9a05728bce
Generalising dj benchmark test to accept options controlling test parameters and arguments saying which pool classes to test.
...
Copied from Perforce
Change: 182767
ServerID: perforce.ravenbrook.com
2013-06-16 00:21:28 +01:00