.
D 2025-01-21T16:01:16.503
J assignee nobody
J closer nobody
J cmimetype text/x-markdown
J comment Reminder\sto\sself\sto\sadd\sto\sdocs\sbased\son\sfollowing\sexplanation\sfrom\sSergey.\r\n\r\n```\r\n[21:02]\tapn\s\tLet\sme\styp\sean\sexample\r\n[21:03]\tapn\s\t%\stimerate\s-calibrate\s{}\r\n\t\t0.03468333977558236\sµs/#-overhead\s0.034767\sµs/#\s56144881\s#\s28762746\s#/sec\r\n\t\t%\stimerate\s{incr\sx}\r\n\t\t0.086050\sµs/#\s8282712\s#\s11621140\s#/sec\s712.728\snet-ms\r\n\t\t%\stimerate\s{}\r\n\t\t0.003148\sµs/#\s26433088\s#\s317655750\s#/sec\s83.213\snet-ms\r\n\t\t%\stimerate\s-overhead\s0.003148\s{incr\sx}\r\n\t\t0.108830\sµs/#\s8930339\s#\s9188650\s#/sec\s971.888\snet-ms\r\n[21:04]\tapn\s\tI\swould\shave\sexpected\sthe\smeasurement\sof\sincr\sx\sin\sthe\stwo\scases\sto\sbe\smuch\scloser\r\n[21:05]\tapn\s\t(Similar\sproportionate\sdifferences\sfor\smore\sexpensive\soperations)\r\n++++++++++++++++++++++\sEnd\sOf\sHistory\s++++++++++++++++++++++\r\n\r\n[21:08]\tsebres\s›\tapn,\syou\sused\scalibrated\scall\sto\sestimate\soverhead...\sthis\sis\snot\squite\scorrect,\slet\sme\sexplain\swith\san\sexample:\r\n[21:08]\tsebres\s›\t\s\s%\sproc\stest\s{}\s{\sset\sovh\s[lindex\s[timerate\s{incr\si}]\s0];\stimerate\s-overhead\s$ovh\s{\sincr\si\s}\s};\stest\r\n[21:08]\tsebres\s›\t\s\s0.000000\sµs/#\s10536827\s#\s10536827000000\s#/sec\s0.001\snet-ms\r\n[21:08]\tsebres\s›\t\s\s%\stimerate\s-calibrate\s{}\r\n[21:08]\tsebres\s›\t\s\s0.03138602152473443\sµs/#-overhead\s0.031464\sµs/#\s62038772\s#\s31782157\s#/sec\r\n[21:08]\tsebres\s›\t\s\s%\sproc\stest\s{}\s{\sset\sovh\s[lindex\s[timerate\s{incr\si}]\s0];\stimerate\s-overhead\s$ovh\s{\sincr\si\s}\s};\stest\r\n[21:08]\tsebres\s›\t\s\s0.030830\sµs/#\s10408764\s#\s32435958\s#/sec\s320.902\snet-ms\r\n[21:08]\tsebres\s›\t\s\s%\sproc\stest\s{}\s{\sset\sovh\s[lindex\s[timerate\s-overhead\s0\s{incr\si}]\s0];\stimerate\s-overhead\s$ovh\s{\sincr\si\s}\s};\stest\r\n[21:08]\tsebres\s›\t\s\s0.000000\sµs/#\s10427036\s#\s10427036000000\s#/sec\s0.001\snet-ms\r\n[21:09]\t\tbwani54\smacht\swie\seine\sBanane...\r\n[21:09]\tsebres\s›\t...\sif\syou\sused\scalibrate\s-\suse\s-overhead\s0\sfor\stimerate\scall\sestimating\sthe\soverhead\r\n[21:10]\t\thenriquegogo\swandelt\sluid\sschreeuwend\sbinnen.\r\n[21:12]\tsebres\s›\thowever\sI'm\snot\sagainst\sto\sfix\sit\s-\se.\sg.\sto\ssum\sthe\soverhead\swith\sa\scalibration\svalue\sstored\sinternally,\sso\sthis\s`-overhead\s0`\sbecomes\sredundant\r\n[21:13]\tapn\s\tBack,\slet\sme\sgo\sthrough\sthat\s...\r\n[21:18]\tapn\s\tSo\scurrently,\sthe\s-calibrate\sinvocation\sonly\saffects\sthe\snext\smeasurement?\r\n[21:19]\tsebres\s›\tno,\sit\saffects\sthe\scalls\swithout\soverhead\s(it\suses\sinternal\soverhead)\r\n[21:19]\tapn\s\tGotcha\r\n[21:19]\tsebres\s›\twell,\sthe\s"fix"\swould\snot\sbecome\ssuperfluous,\sit'd\sbe\sa\sbit\sincompatible\sif\sused\spreviously,\sso\sif\swe'd\sfix\sit,\sone\sneed\sto\smention\sit\ssomewhere\sin\sthe\sdocu\r\n[21:19]\tapn\s\tSo\sit's\skind\sof\sthe\soverhead\sused\sif\s-overhead\sis\snot\sspecified.\r\n[21:21]\tsebres\s›\texactly,\sif\sno\s-overhead,\suse\scalibrated\soverhead,\sotherwise\svalues\sgiven\swith\s-overhead\r\n[21:21]\tapn\s\tI\sthink\sthe\scurrent\sbehavior\sis\sok\sbut\sI\sdid\snot\sunderstand\sthat\sfrom\sthe\smanpage.\sI'll\sgo\sread\sit\sagain\sto\ssee\sif\sI\smissed\ssomething.\r\n[21:21]\tsebres\s›\t...\sthe\sfix\smay\sbe\sa\ssum\sof\sboth\r\n[21:21]\tapn\s\tAnd\sto\smeasure\sthe\soverhead,\sone\sshould\salso\spass\s-overhead\s0\sto\sthe\scommand\r\n[21:21]\tapn\s\tright?\r\n[21:22]\tsebres\s›\tcurrently\syes\s(to\sbe\ssure,\sthe\s-calibrate\soverhead\sis\snot\sevolved)\r\n```
J foundin 9.0.1
J is_private 0
J login apnadkarni
J priority 5\sMedium
J private_contact 9546e9877f1a8899e25a89082561ee694e7fb402
J resolution None
J severity Minor
J status Open
J submitter apnadkarni
J subsystem -\sNew\sBuiltin\sCommands
J title Documentation\sof\stimerate\s-overhead\sneeds\ssome\sdetail
J type RFE
K 48a7a56dda84478202d547f61746d8d646aa7d8d
U apnadkarni
Z cdaa7cc91e01e3bded3c39df7a715423