Posted to tcl by evilotto at Sat Feb 04 01:27:30 GMT 2017view raw

  1. % set a {}
  2. % time {append a " {}" ; llength $a} 1000
  3. 47.583 microseconds per iteration
  4. % set a {}
  5. % time {append a " {}" ; llength $a} 10000
  6. 460.8025 microseconds per iteration
  7. % set a {}
  8. % time {lappend a {} ; llength $a} 100000
  9. 0.63703 microseconds per iteration
  10. %
  11.