Overview
| Artifact ID: | 8d337d50865dd0061c9ab9807d7eeea51000d9f38b50a5d89504329b9e1e5ef3 |
|---|---|
| Ticket: | 52fd7694564161f7a1ee24b073a5af8cf5675e08
cmdMZ-6.6 fails on low performance system |
| User & Date: | chrstphrchvz on 2023-06-26 01:02:57 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-wiki"
- comment changed to:
In cmdMZ.test, <tt>_nrt_sleep 0.01</tt> should take at least 10µs to run. But cmdMZ-6.6 assumes that <tt>timerate {_nrt_sleep 0.01} 50</tt> will run <tt>_nrt_sleep 0.01</tt> at least 500 times, with an average time less than 100µs and at a rate greater than 10000 times per second; this is not the case on one of my systems which is running IA-32 (32-bit x86) Linux on a single-core 1.73GHz Pentium M. Are such performance requirements truly necessary for this test? <pre> ==== cmdMZ-6.6 Tcl_TimeRateObjCmd: slower commands take longer, but it remains almost the same time of measument FAILED ==== Contents of test case:<br /> set m1 [timerate {_nrt_sleep 0.01} 50] set m2 [timerate {_nrt_sleep 1.00} 50] list [list \ [expr {[lindex $m1 0] < [lindex $m2 0]}] \ [expr {[lindex $m1 0] < 100}] \ [expr {[lindex $m2 0] > 100}] \ [expr {[lindex $m1 2] > 500}] \ [expr {[lindex $m2 2] < 500}] \ [expr {[lindex $m1 4] > 10000}] \ [expr {[lindex $m2 4] < 10000}] \ [expr {[lindex $m1 6] > 5 && [lindex $m1 6] < 100}] \ [expr {[lindex $m2 6] > 5 && [lindex $m2 6] < 100}] \ ] $m1 $m2; # interesting only in error case.<br /> ---- Result was: {1 0 1 0 1 0 1 1 1} {108.017 µs/# 463 # 9257.8 #/sec 50.012 net-ms} {1093.13 µs/# 46 # 914.80 #/sec 50.284 net-ms} ---- Result should have been (glob matching): {1 1 1 1 1 1 1 1 1} * ==== cmdMZ-6.6 FAILED </pre> - foundin changed to: "8.6.13"
- is_private changed to: "0"
- login: "chrstphrchvz"
- priority changed to: "5 Medium"
- private_contact changed to: "6133eb3026f9b10aa9b7b48da92ae2834fc225b0"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "chrstphrchvz"
- subsystem changed to: "06. Time Measurement"
- title changed to: "cmdMZ-6.6 fails on low performance system"
- type changed to: "Bug"