<i>clock command is 8 times slower with Tcl 9.0b1</i> status still Pending with 4 other changes
by
.
D 2024-02-27T17:47:58.725
J icomment Wow,\sI\swould\snever\shave\sthought\sthis.\r\nThe\sshimmering\sbetween\sutf8\sand\sUNICODE\sis\squite\snew\sto\sme\sand\sis\san\simportant\sfact.\r\nYou\slearn\seach\sday,\sthank\syou\sso\smuch.\r\n\r\nHere\sare\sthe\sresults\son\smy\stcl\s8.6.13:\r\n\r\n<verbatim>\r\n%\sproc\stest\s{ns}\s{\stimerate\s{\sregexp\s--\s{^::oo::}\s$ns\s}\s};\stest\s::tcl::clock\r\n0.105722\sµs/#\s5368601\s#\s9458756\s#/sec\s567.580\snet-ms\r\n%\sproc\stest\s{ns}\s{\stimerate\s{\sstring\sequal\s-length\s6\s{::oo::}\s$ns\s}\s};\stest\s::tcl::clock\r\n0.642979\sµs/#\s1382123\s#\s1555260\s#/sec\s888.676\snet-ms\r\n%\sproc\stest\s{ns}\s{\stimerate\s{\sregexp\s--\s{^::oo::}\s$ns\s}\s};\stest\s::oo::test\r\n0.188651\sµs/#\s3714746\s#\s5300782\s#/sec\s700.792\snet-ms\r\n5\s%\sproc\stest\s{ns}\s{\stimerate\s{\sstring\sequal\s-length\s6\s{::oo::}\s$ns\s}\s};\stest\s::oo::test\r\n0.659135\sµs/#\s1351934\s#\s1517139\s#/sec\s891.107\snet-ms\r\n%\sexpr\s0.642979/0.105722\r\n6.081789977488129\r\n%\sexpr\s0.659135/0.188651\r\n3.4939385425998273\r\n</verbatim>\r\n\r\nSo\sfactor\s6\sand\s3.5\sfaster\sfor\sregexp,\sincredibble.\r\nI\salso\stried\s"string\smatch\s{::oo::*}"\swhich\sis\sclose\sto\sregexp.\r\n\r\nTIP\s688\sis\sstarted\sand\smay\sbe\simproved\s:\s[https://core.tcl-lang.org/tips/doc/trunk/tip/688.md]\r\n\r\nThank\syou,\syou\sguys\srock!\r\nHarald
J login oehhar
J mimetype text/x-fossil-wiki
J username oehhar
K e02798626dfbcd7b33db19e0fc3a9fb9fa0714f4
U oehhar
Z 5c207d9225479af696a7c7b231d10fd4