Language speed [was Re: Good TK book]

From: Gustaf Neumann (neumann_at_wu-wien.ac.at)
Date: 12/30/04

  • Next message: millertimebjm_at_yahoo.com: "automate keypress in Expect or TCL"
    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


  • Next message: millertimebjm_at_yahoo.com: "automate keypress in Expect or TCL"

    Relevant Pages