Neil Jerram
679cceeda4
Misc textual editing
...
* doc/ref/api-scheduling.texi (Asyncs): "queueing" -> "queuing".
* benchmark-suite/lib.scm, doc/sources/unix.texi (Unix conventions),
test-suite/lib.scm: "postpend" -> "append".
* doc/ref/api-compound.texi (Array Syntax, Dictionary Types),
doc/ref/api-control.texi (Catch), doc/ref/api-data.texi (Complex
Numbers, Conversion, Random, Symbol Props, Symbol Uninterned),
doc/ref/api-options.texi (Build Config, Common Feature Symbols),
doc/ref/api-regex.texi (Match Structures),
doc/ref/api-undocumented.texi, doc/ref/compiler.texi (Tree-IL,
GLIL), doc/ref/data-rep.texi (Immediate objects), doc/ref/goops.texi
(Slot Description Example), doc/ref/history.texi (A Scheme of Many
Maintainers, Status), doc/ref/libguile-program.texi (Available
Functionality), doc/ref/misc-modules.texi (Formatted Output),
doc/ref/mod-getopt-long.texi (getopt-long Reference),
doc/ref/posix.texi (Network Socket Address, Network Sockets and
Communication), doc/ref/srfi-modules.texi (SRFI-1 Association Lists,
SRFI-10, SRFI-19 String to date, SRFI-27 Random Sources),
doc/ref/vm.texi (Instruction Set, Top-Level Environment
Instructions, Procedure Call and Return Instructions),
doc/sources/unix.texi (Unix conventions): Correct spacing after
"i.e." and "e.g.".
2011-02-13 22:13:33 +00:00
Ludovic Courtès
d9f24bc917
Add a `read-line' benchmark.
...
* benchmark-suite/benchmarks/ports.bm ("rdelim"): New benchmark prefix.
2011-01-26 23:03:17 +01:00
Ludovic Courtès
2427baa6a2
Add fixnum arithmetic benchmarks.
...
* benchmark-suite/benchmarks/arithmetic.bm ("fixnum")["*", "/"]: New
benchmarks.
2010-11-19 13:34:43 +01:00
Ludovic Courtès
9cec275968
Augment `arithmetic.bm'.
...
* benchmark-suite/benchmarks/arithmetic.bm (repeat): Change the syntax.
Add support for binary OP.
("fixnum")["1+", "1-"]: Adjust accordingly.
["+", "-"]: New benchmarks.
2010-10-27 23:29:37 +02:00
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
Ludovic Courtès
fd5eec2b6e
Optimize `peek-char'.
...
This makes `peek-char' 40x faster on a port whose encoding is
faster on a UTF-8 port containing multi-byte codepoints.
The `xml->sxml' procedure is 4x faster on a 2.7 MiB XML file.
* libguile/ports.c (get_codepoint): New procedure, moved here from
`scm_getc', with the additional BUF and LEN parameters.
(scm_getc): Use it.
(scm_peek_char): Use it instead of the `scm_getc'/`scm_ungetc'
sequence.
* test-suite/tests/ports.test ("string ports")["peek-char [latin-1]",
"peek-char [utf-8]"]: New tests.
* benchmark-suite/Makefile.am (SCM_BENCHMARKS): Add
`benchmarks/ports.bm'.
* benchmark-suite/benchmarks/ports.bm: New file.
2010-09-15 18:38:57 +02:00
Ludovic Courtès
e9c3018cec
Fix copyright year and module name of `write.bm'.
...
* benchmark-suite/benchmarks/write.bm: Fix copyright year and module
name.
2010-09-15 18:27:47 +02:00
Ludovic Courtès
07f49ac786
Factorize and optimize `write' for strings and characters.
...
According to `write.bm', this makes `write' 2.6 times faster for strings.
* libguile/print.c (iprin1): Use `write_character' when
`SCM_WRITINGP (pstate)' and `SCM_CHARP (exp)' or `scm_is_string (exp)'.
(scm_i_charprint): Remove.
(display_character, write_character): New functions.
(scm_write_char): Use `display_character' instead of
`scm_i_charprint'.
* libguile/print.h (scm_i_charprint): Remove declaration.
* benchmark-suite/benchmarks/write.bm: New file.
* benchmark-suite/Makefile.am (SCM_BENCHMARKS): Add
`benchmarks/write.bm'.
2010-09-14 16:11:19 +02:00
Ludovic Courtès
dcde43869a
SRFI-1: Rewrite drop-right!',
drop-while', `reduce', etc. in Scheme.
...
This partially reverts commit e9508fbb7d
(May 3 2005).
* module/srfi/srfi-1.scm (take!, drop-right!, reduce, reduce-right,
take-while, take-while!, drop-while, span, span!, lset-adjoin): New
procedures.
* srfi/srfi-1.c (scm_srfi1_drop_right_x, scm_srfi1_drop_while,
scm_srfi1_lset_adjoin, scm_srfi1_reduce, scm_srfi1_reduce_right,
scm_srfi1_span, scm_srfi1_span_x, scm_srfi1_take_x,
scm_srfi1_take_while, scm_srfi1_take_while_x): Rewrite as
proxies to the corresponding Scheme procedures.
* benchmark-suite/benchmarks/srfi-1.bm ("drop-while"): New benchmark
prefix.
2010-09-02 00:03:07 +02:00
Ludovic Courtès
d3cc00f65d
SRFI-1: Choose better benchmark names.
...
* benchmark-suite/benchmarks/srfi-1.bm ("fold"): Rename sub-tests to
"big" and "small".
2010-08-27 18:59:43 +02:00
Ludovic Courtès
0b7f2eb8bf
Start rewriting SRFI-1 in Scheme.
...
This partially reverts commit e556f8c3c6
(Fri May 6 2005).
* module/srfi/srfi-1.scm (xcons, list-tabulate, not-pair?, car+cdr,
last, fold, list-index): New procedures.
* srfi/srfi-1.c (srfi1_module): New variable.
(CACHE_VAR): New macro.
(scm_srfi1_car_plus_cdr, scm_srfi1_fold, scm_srfi1_last,
scm_srfi1_list_index, scm_srfi1_list_tabulate, scm_srfi1_not_pair_p,
scm_srfi1_xcons): Rewrite as proxies of the corresponding Scheme
procedure.
* test-suite/tests/srfi-1.test ("list-tabulate")["-1"]: Change exception
type to `exception:wrong-type-arg'.
* benchmark-suite/benchmarks/srfi-1.bm: New file.
* benchmark-suite/Makefile.am (SCM_BENCHMARKS): Add
`benchmarks/srfi-1.bm'.
* test-suite/standalone/Makefile.am (test_srfi_1_SOURCES,
test_srfi_1_CFLAGS, test_srfi_1_LDADD): New variables.
(check_PROGRAMS): Add `test-srfi-1'.
(TESTS): Ditto.
* test-suite/standalone/test-srfi-1.c: New file.
2010-07-21 01:07:56 +02:00
Ludovic Courtès
410f2f0ddc
Add missing benchmark files to the distribution.
...
* benchmark-suite/Makefile.am (SCM_BENCHMARKS): Add
`benchmarks/chars.bm' and `benchmarks/srfi-13.bm'.
2010-07-13 00:08:09 +02:00
Andy Wingo
010b159f56
deprecate has-suffix?
...
* module/ice-9/boot-9.scm:
* module/ice-9/deprecated.scm (has-suffix?): Deprecate.
* test-suite/guile-test:
* benchmark-suite/guile-benchmark: Fix uses of deprecated has-suffix?.
2010-06-11 16:58:24 +02:00
Andy Wingo
07d22c0259
rename (rnrs bytevector) to (rnrs bytevectors)
...
* module/rnrs/bytevectors.scm: Rename to (rnrs bytevectors), from (rnrs
bytevector), to match the name from the R6RS.
* benchmark-suite/benchmarks/bytevectors.bm:
* doc/ref/api-data.texi:
* doc/ref/api-foreign.texi:
* libguile/bytevectors.c:
* module/6/rnrs.scm:
* module/language/assembly.scm:
* module/language/assembly/compile-bytecode.scm:
* module/language/assembly/decompile-bytecode.scm:
* module/language/glil/compile-assembly.scm:
* module/language/tree-il/primitives.scm:
* module/srfi/srfi-4.scm:
* module/srfi/srfi-4/gnu.scm:
* module/system/foreign.scm:
* test-suite/standalone/test-ffi:
* test-suite/tests/asm-to-bytecode.test:
* test-suite/tests/bytevectors.test:
* test-suite/tests/foreign.test:
* test-suite/tests/r6rs-ports.test: Update all referrers.
2010-06-01 13:26:11 +02:00
Andy Wingo
689af21100
fix read.bm
...
* benchmark-suite/benchmarks/read.bm (%files-to-load): psyntax-pp.scm,
not psyntax.scm.
2010-04-17 14:04:49 +02:00
Ludovic Courtès
22ec6a31ed
Add `(ice-9 vlist)'.
...
* module/ice-9/vlist.scm, test-suite/tests/vlist.test,
benchmark-suite/benchmarks/vlists.bm: New files.
* module/Makefile.am (ICE_9_SOURCES): Add `vlist.scm'.
* test-suite/Makefile.am (SCM_TESTS): Add `tests/vlist.test'.
* benchmark-suite/Makefile.am (SCM_BENCHMARKS): Add
`benchmarks/vlists.bm'.
* doc/ref/api-compound.texi (VLists, VHashes): New nodes.
2010-02-03 00:02:14 +01:00
Ludovic Courtès
f680bdd762
Add struct & vector benchmarks.
...
* benchmark-suite/benchmarks/structs.bm,
benchmark-suite/benchmarks/vectors.bm: New files.
* benchmark-suite/Makefile.am (SCM_BENCHMARKS): Add.
* benchmark-suite/benchmarks/bytevectors.bm: Fix copyright.
2009-12-11 13:03:46 +01:00
Ludovic Courtès
981ff600e8
Fix makefile indentation.
...
* benchmark-suite/Makefile.am, libguile/Makefile.am, meta/Makefile.am:
Use TAB instead of 8 spaces...
* .x-sc_makefile_check: New file.
2009-11-24 23:41:08 +01:00
Neil Jerram
9084db993e
Increase benchmark iterations to improve precision in comparisons over time
...
* benchmark-suite/benchmarks/continuations.bm: Increase "call/cc"
iterations from 300 to 12000.
* benchmark-suite/benchmarks/srfi-13.bm ("strings"): Increase "copy"
iterations from 1100 to 20000, and "pad" from 6800 to 34000.
* benchmark-suite/benchmarks/uniform-vector-read.bm
("uniform-vector-read!"): Increase "uniform-vector-write" iterations
from 500 to 4000, and "uniform-vector-read!" from 500 to 20000.
2009-11-03 22:50:07 +00:00
Neil Jerram
5904704335
Changes so that benchmark-guile runs successfully
...
* benchmark-suite/benchmarks/bytevectors.bm: Add "coding: latin1"
comment where Guile will find it.
* benchmark-suite/benchmarks/chars.bm: Ditto.
* benchmark-suite/benchmarks/srfi-13.bm: Ditto.
* benchmark-suite/benchmarks/read.bm ("read"): Divide numbers of
iterations by 10, so that the benchmarks complete within a few
minutes.
* benchmark-suite/lib.scm (benchmark): Use `run-benchmark' in macro
definition, not `,run-benchmark'.
* benchmark-suite/benchmarks/0-reference.bm,
benchmark-suite/benchmarks/continuations.bm,
benchmark-suite/benchmarks/if.bm,
benchmark-suite/benchmarks/logand.bm: Add define-module.
* benchmark-suite/results/neil-arudy: New file, containing benchmark
results from my computer.
2009-09-22 00:39:57 +01:00
Michael Gran
1b9ac4580c
Updates to benchmarks for srfi-13
...
Test more of the positive paths. Add test for string-prefix-ci?
string-suffix-ci? and string-hash-ci. Update the counts per test
to give approximately the same bench/interp time for each test for
1.8.7.
* benchmark-suite/benchmarks/srfi-13.bm: update benchmarks
2009-08-19 22:16:04 -07:00
Michael Gran
3dd11c9b13
Benchmarks for common character and string procedures
...
* benchmark-suite/benchmarks/chars.bm: new benchmarks
* benchmark-suite/benchmarks/srfi-13.bm: new benchmarks
2009-08-18 21:11:58 -07:00
Neil Jerram
53befeb700
Change Guile license to LGPLv3+
...
(Not quite finished, the following will be done tomorrow.
module/srfi/*.scm
module/rnrs/*.scm
module/scripts/*.scm
testsuite/*.scm
guile-readline/*
)
2009-06-17 00:22:09 +01:00
Ludovic Courtès
1ee2c72eaf
Import R6RS bytevectors and I/O ports from Guile-R6RS-Libs 0.2.
...
* README: Document dependency on GNU libunistring.
* benchmark-suite/Makefile.am (SCM_BENCHMARKS): Add
`benchmark/bytevectors.bm'.
* configure.in: Make sure we have libunistring; update $LIBS.
* libguile.h: Include "bytevectors.h" and "r6rs-ports.h".
* libguile/Makefile.am (libguile_la_SOURCES): Add `bytevectors.c' and
`r6rs-ports.c'
(DOT_X_FILES): Add `bytevectors.x' and `r6rs-ports.x'.
(DOT_DOC_FILES): Add `bytevectors.doc' and `r6rs-ports.doc'.
(noinst_HEADERS): Add `ieee-754.h'.
(modinclude_HEADERS): Add `bytevectors.h' and `r6rs-ports.h'
* libguile/validate.h (SCM_VALIDATE_BYTEVECTOR): New macro.
* module/Makefile.am (SOURCES): Add $(RNRS_SOURCES).
(RNRS_SOURCES): New variable.
* test-suite/Makefile.am (SCM_TESTS): Add `bytevectors.test' and
`r6rs-ports.test'.
2009-05-28 23:12:01 +02:00
Ludovic Courtès
3e414c302f
Add new subr invocation benchmarks.
...
* benchmark-suite/benchmarks/subr.bm (hook1, hook3): New variables.
("subr invocation")("generic subr with rest arg", "generic subr with
rest arg and 3+ parameters"): New benchmarks.
("subr application")("generic subr with rest arg", "generic subr with
rest arg and 3+ parameters"): New benchmarks.
2009-03-08 16:38:51 +01:00
Ludovic Courtès
b786a5bbf8
Add subr invocation benchmark.
...
* benchmark-suite/Makefile.am (SCM_BENCHMARKS): Add `subr.bm'.
2009-03-02 00:18:34 +01:00
Neil Jerram
88f5ea45d5
Revert "Note need for subscription to bug-guile@gnu.org."
...
This reverts commit cbea802b37
, which is
appropriate because subscription is not now required for someone to
send a message to bug-guile@gnu.org .
Conflicts:
2008-12-10 19:07:14 +00:00
Ludovic Courtès
aa51e98ac5
Add `uniform-vector-read!' benchmark.
2008-09-15 01:35:04 +01:00
Ludovic Courtès
61db429e25
Add `ChangeLog-2008' files to the distribution.
2008-09-12 21:57:52 +02:00
Ludovic Courtès
afb59d75b8
Rename ChangeLog' files to
ChangeLog-2008'.
2008-09-12 21:49:58 +02:00
Ludovic Courtès
85ca88c68b
Remove `.cvsignore' files.
2008-09-11 21:28:21 +02:00
Ludovic Courtès
6bb1dc98b9
Add `read' benchmark.
2008-04-17 10:24:10 +02:00
Neil Jerram
7df13834d4
* LICENSE: Change COPYING.LIB to COPYING.LESSER.
...
* COPYING.LESSER: Renamed, previously COPYING.LIB.
* COPYING: Removed.
* COPYING: Removed.
* COPYING: Removed.
* COPYING: Removed.
* COPYING: Removed.
* COPYING: Removed.
* COPYING: Removed.
* COPYING: Removed.
2008-01-22 21:46:24 +00:00
Neil Jerram
cbea802b37
Note need for subscription to bug-guile@gnu.org.
2006-11-17 15:53:17 +00:00
Marius Vollmer
7f9da94135
(SCM_BENCHMARKS_DIRS, dist-hook): Removed, they are
...
no longer needed and lead to unclean tarballs.
2006-05-01 21:32:21 +00:00
Kevin Ryde
6e7d5622ee
merge from 1.8 branch
2006-04-16 23:37:40 +00:00
Marius Vollmer
92205699d0
The FSF has a new address.
2005-05-23 19:57:22 +00:00
Marius Vollmer
5ae1bd9109
New versions of the GPLand LGPL with the new address of the FSF.
2005-05-23 19:00:08 +00:00
Dirk Herrmann
36ffdf0abf
* lib.scm: Extracted '/i' to toplevel. Print the guile version
...
number before the benchmarks are run. Print the framework-time
per iteration as an inexact number.
2004-01-23 14:47:56 +00:00
Marius Vollmer
476e56aa64
*** empty log message ***
2004-01-06 16:20:03 +00:00
Marius Vollmer
08feeec84a
(print-result, print-user-result): Handle exact fractions.
2004-01-06 16:19:21 +00:00
Dirk Herrmann
42ad901d04
* benchmark-suite/lib.scm: Fix some typos in the documentation.
...
* doc/ref/scheme-compound.texi: Clarified that vectors need to
be quoted.
* doc/tutorial/guile-tut.texi: Fix example, where a vector
constant is used without quoting.
* ice-9/boot-9.scm (make-autoload-interface): Added missing
quote around vector constant.
* test-suite/tests/elisp.test: Added missing quote around vector
constants.
2003-05-27 18:33:19 +00:00
Rob Browning
a0760d6173
*** empty log message ***
2002-09-15 01:11:00 +00:00
Rob Browning
d3633db413
* .cvsignore: new file.
2002-09-15 01:08:32 +00:00
Marius Vollmer
c3b6ed76e3
*** empty log message ***
2002-07-26 16:21:00 +00:00
Marius Vollmer
1bb649f993
(dist-hook): Use quotes so that an empty SCM_BENCHMARKS_DIRS works.
2002-07-26 16:20:53 +00:00
Marius Vollmer
ab331c2b6c
*** empty log message ***
2002-07-26 16:00:38 +00:00
Marius Vollmer
5a6aa7e7ce
(SCM_BENCHMARKS): List the real benchmarks, not foo
...
and bar.
(SCM_BENCHMARKS_DIRS): Uncommented, with an empty value.
2002-07-26 16:00:27 +00:00
Dirk Herrmann
8f28ea31bb
* lib.scm (print-result, print-user-result): Changed the
...
reporter's outputs to use symbols rather than strings to document
the individual values. Thanks to Neil Jerram for the suggestion.
2002-07-21 12:01:26 +00:00
Dirk Herrmann
bde9d30b51
* benchmarks/0-reference.bm: Added as a reference benchmark to be
...
used to calibrate iteration counts.
* lib.scm: Added documentation. Added some initialization
messages.
(benchmark-time-base, benchmark-total-time, benchmark-user-time,
benchmark-system-time, benchmark-frame-time, benchmark-core-time,
benchmark-user-time\interpreter, benchmark-core-time\interpreter):
Exported.
(benchmark-time-base, time-base): Renamed time-base to
benchmark-time-base and introduced new time-base as a short-cut.
(total-time, benchmark-total-time, user-time, benchmark-user-time,
system-time, benchmark-system-time, frame-time,
benchmark-frame-time, benchmark-time, benchmark-core-time,
user-time\interpreter, benchmark-user-time\interpreter,
benchmark-time\interpreter, benchmark-core-time\interpreter,
print-result, print-user-result): Renamed <foo>-time to
benchmark-<foo>-time. Exceptions: benchmark-time and
benchmark-time\interpreter were renamed to benchmark-core-time and
benchmark-core-time\interpreter, respectively.
2002-07-21 10:22:54 +00:00