Language speed [was Re: Good TK book]
From: Gustaf Neumann (neumann_at_wu-wien.ac.at)
Date: 12/30/04
- Previous message: Bob Techentin: "Re: Language speed [was Re: Good TK book]"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 30 Dec 2004 06:19:31 -0800
>Small positive difference for [incr n], and no difference, or perhaps
even a >penalty for [incr m -1].
hmm, i just tried it on mac osx (tcl 8.4.6), and got
> tclsh8.4 cfs/scripts/acker.tcl 7
t0=3007371 microseconds per iteration
t1=2570732 microseconds per iteration
Ack(3,7): 1021
Ack(3,7): 1021
but you are right, the difference vanishes for higher values
of n. gone are the days, where this tricks really helped.
Saveing a few newlines (as with the cond. expression for argv
in my version) should improve scores as well, since they seem
to produce as well ranks on LOC.
Hope, the benchmark sets the c stacksize (limit stacksize unlimited)
as well.
best regards
-gustaf
- Previous message: Bob Techentin: "Re: Language speed [was Re: Good TK book]"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|