1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-20 03:30:27 +02:00
guile/benchmark-suite/benchmarks
Ludovic Courtès e78d4bf9a9 Optimize 1+' and 1-' on fixnums.
* libguile/vm-i-scheme.c (INUM_MAX, INUM_MIN): New macros.
  (add1, sub1): Add/subtract without untagging the operand.  This leads
  to a 44% run time improvement compared to the previous
  implementation.

* libguile/vm.c: Include <stdint.h>.

* test-suite/tests/numbers.test ("1+", "1-"): Add tests for
  MOST-POSITIVE-FIXNUM, resp. MOST-NEGATIVE-FIXNUM, for 32-bit and
  34-bit values thereof.

* benchmark-suite/benchmarks/arithmetic.bm: New file.

* benchmark-suite/Makefile.am (SCM_BENCHMARKS): Add it.
2010-10-13 01:31:19 +02:00
..
0-reference.bm Changes so that benchmark-guile runs successfully 2009-09-22 00:39:57 +01:00
arithmetic.bm Optimize 1+' and 1-' on fixnums. 2010-10-13 01:31:19 +02:00
bytevectors.bm rename (rnrs bytevector) to (rnrs bytevectors) 2010-06-01 13:26:11 +02:00
chars.bm Changes so that benchmark-guile runs successfully 2009-09-22 00:39:57 +01:00
continuations.bm Increase benchmark iterations to improve precision in comparisons over time 2009-11-03 22:50:07 +00:00
if.bm Changes so that benchmark-guile runs successfully 2009-09-22 00:39:57 +01:00
logand.bm Changes so that benchmark-guile runs successfully 2009-09-22 00:39:57 +01:00
ports.bm Optimize `peek-char'. 2010-09-15 18:38:57 +02:00
read.bm fix read.bm 2010-04-17 14:04:49 +02:00
srfi-1.bm SRFI-1: Rewrite drop-right!', drop-while', `reduce', etc. in Scheme. 2010-09-02 00:03:07 +02:00
srfi-13.bm Increase benchmark iterations to improve precision in comparisons over time 2009-11-03 22:50:07 +00:00
structs.bm Add struct & vector benchmarks. 2009-12-11 13:03:46 +01:00
subr.bm Change Guile license to LGPLv3+ 2009-06-17 00:22:09 +01:00
uniform-vector-read.bm Increase benchmark iterations to improve precision in comparisons over time 2009-11-03 22:50:07 +00:00
vectors.bm Add struct & vector benchmarks. 2009-12-11 13:03:46 +01:00
vlists.bm Add `(ice-9 vlist)'. 2010-02-03 00:02:14 +01:00
write.bm Fix copyright year and module name of `write.bm'. 2010-09-15 18:27:47 +02:00