1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-23 23:36:27 -07:00
Commit graph

26 commits

Author SHA1 Message Date
Gareth Rees
14d975c6a4 Add a test checking that the hot variety is not too much slower than the rash variety. turn this on for continuous integration testing via "make test".
Copied from Perforce
 Change: 191339
 ServerID: perforce.ravenbrook.com
2016-04-20 13:15:18 +01:00
Richard Brooksby
6e65f1ff18 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
2d0f425428 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
39e8b866cf 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
aaadf9816e 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
63c4b56bf9 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
230d7cf721 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
cd291a5f7a 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
a9923af928 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
c639055f7b 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
b70e268929 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
993821517e 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
a03056f39a 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
098eb9e6d7 Catch-up merge from master.
Copied from Perforce
 Change: 184732
 ServerID: perforce.ravenbrook.com
2014-03-11 16:30:47 +00:00
Gareth Rees
1243791d24 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
cd7110d70a 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
eb75944742 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
32d10cd02a Make mps_args_done obsolete.
Copied from Perforce
 Change: 184543
 ServerID: perforce.ravenbrook.com
2014-02-26 12:47:27 +00:00
Richard Brooksby
728ea5e066 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
b0e4e8528f 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
8ef0a0be21 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
d02bc32f5f 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
e73109d070 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
201a76c3b7 Improving usage message.
Copied from Perforce
 Change: 182772
 ServerID: perforce.ravenbrook.com
2013-06-16 00:55:41 +01:00
Richard Brooksby
be18333bdb 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
c548654603 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