Euphoria
Ticket #527:
Clean up sieve8k benchmark, make as fast as possible
-
Reported by
jeremy
Dec 10, 2010
The program was given as an example of Euphoria's speed. It can be cleaned up some to become faster. Since it's purpose is to show speed, we should do everything possible for speeds sake.
Details
1. Comment by jimcbrown
Dec 20, 2010
See: hg:euphoria/rev/52a7476e3362
changeset: 4281:52a7476e3362 tag: tip user: Jim C Brown date: Mon Dec 20 13:10:24 2010 -0500 files: demo/bench/sieve8k.ex description: Speed up sieve8k for ticket:527
2. Comment by jimcbrown
Dec 20, 2010
See: hg:euphoria/rev/f525bc55e676
changeset: 4282:f525bc55e676 tag: tip user: Jim C Brown date: Mon Dec 20 13:13:04 2010 -0500 files: demo/bench/sieve8k.ex description: Undo previous commit, attempt to fix ticket:527 again
3. Comment by jeremy
Dec 20, 2010
What is the status of this then? Completed?
4. Comment by mattlewis
Dec 20, 2010
I think we can consider this about as good as it's going to get. We did get a for-loop optimization out of this, plus some edits to the sieve code itself. Under Linux, for me, 4.0 is faster than 3.1.1, comparing the old 3.1.1 sieve code with both interpreters, and with running the 4.0 with eui.
5. Comment by DerekParnell
Dec 20, 2010
I've got a couple more tweaks if we need it. Only shaves off 1/2 a second.
6. Comment by mattlewis
Dec 20, 2010
Tweak away!
7. Comment by jimcbrown
Dec 20, 2010
I think we should. Every half second is worth it.
8. Comment by DerekParnell
Dec 21, 2010
Added more tweaks. Closed due to diminishing returns.