Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 433d32bf0734b66a4bf61128edeaad36c1189fc5
Ticket: 1586292fffffffffffffffffffffffffffffffff
threaded build too slow?
User & Date: msofer on 2006-10-28 16:00:13
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    For reasons that are not important here, I timed the
    speed of proc and ensemble calls in current HEAD. The
    threaded build is *much* slower (1.75x). 
    
    The script at /tmp/test is
    
       proc a {x y} {set x 1}
       namespace ensemble create -command ::w -map {a a}
       # Just to make the timings stabilise accross runs
       # ... probably too much, but who cares
       time {a 1 2} 10000
       time {w a 1 2} 10000
       lappend res proc:[time {a 1 2} 10000]
       lappend res ense:[time {w a 1 2} 10000]
       lappend res [info patchlevel]
       puts [join $res \n]
    
    Building with --disable-shared I get
    
       sh-3.1# ./tclsh /tmp/test
       proc:2.3583 microseconds per iteration
       ense:3.1632 microseconds per iteration
       8.5a6
    
    and with --disable-shared --enable-threads
    
       sh-3.1# ./tclsh /tmp/test
       proc:4.1325 microseconds per iteration
       ense:5.8033 microseconds per iteration
       8.5a6
    
    
  4. foundin changed to: "obsolete: 8.5a6"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "msofer"
  10. subsystem changed to: "49. Threading"
  11. title changed to: "threaded build too slow?"
  12. type changed to: "Bug"