ecraven / r7rs-benchmarks

Benchmarks for various Scheme implementations. Taken with kind permission from the Larceny project, based on the Gabriel and Gambit benchmarks.
270 stars 32 forks source link

Safe optimizations #45

Open wingo opened 5 years ago

wingo commented 5 years ago

Change Chez, Gambit, and Gerbil to avoid unsafe optimizations. Fixes #43.

ghost commented 4 years ago

If we're heading that way, then you might also want to change https://github.com/ecraven/r7rs-benchmarks/blob/master/bench#L760.

${GERBIL} -d $(dirname "$1") -exe -static -O -prelude "(declare (not safe))" -o "${1%.scm}.exe" "$1"

belmarca commented 4 years ago

Why not just have a safe and unsafe benchmarks?

Maybe a "defaults" benchmark?

svenha commented 4 years ago

Producing benchmark results in safe mode and in unsafe mode will help a lot of Schemers.

A defaults run could help beginners, but beginners should not benchmark too much :-) So, I would avoid a defaults run.