summaryrefslogtreecommitdiffstats
path: root/tests-perf
diff options
context:
space:
mode:
authorsebres <sebres@users.sourceforge.net>2019-05-24 16:49:32 (GMT)
committersebres <sebres@users.sourceforge.net>2019-05-24 16:49:32 (GMT)
commitcb9018a721f8b149c7add1abdda5826c9385c501 (patch)
tree2156c71fc914fb99c6c1f5f6eab4cdeaf44ebb25 /tests-perf
parent3ab1f672a4432f15afd982ad5857d67abd7e5db2 (diff)
downloadtcl-cb9018a721f8b149c7add1abdda5826c9385c501.zip
tcl-cb9018a721f8b149c7add1abdda5826c9385c501.tar.gz
tcl-cb9018a721f8b149c7add1abdda5826c9385c501.tar.bz2
fixes typo ("net" instead of outdated term "nett")
Diffstat (limited to 'tests-perf')
-rw-r--r--tests-perf/test-performance.tcl12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests-perf/test-performance.tcl b/tests-perf/test-performance.tcl
index 99a4e47..a05c380 100644
--- a/tests-perf/test-performance.tcl
+++ b/tests-perf/test-performance.tcl
@@ -51,13 +51,13 @@ proc _test_out_total {} {
set mintm 0x7fffffff
set maxtm 0
- set nett 0
+ set nettm 0
set wtm 0
set wcnt 0
set i 0
foreach tm $_(itm) {
if {[llength $tm] > 6} {
- set nett [expr {$nett + [lindex $tm 6]}]
+ set nettm [expr {$nettm + [lindex $tm 6]}]
}
set wtm [expr {$wtm + [lindex $tm 0]}]
set wcnt [expr {$wcnt + [lindex $tm 2]}]
@@ -69,15 +69,15 @@ proc _test_out_total {} {
puts [string repeat ** 40]
set s [format "%d cases in %.2f sec." $tcnt [expr {([clock milliseconds] - $_(starttime)) / 1000.0}]]
- if {$nett > 0} {
- append s [format " (%.2f nett-sec.)" [expr {$nett / 1000.0}]]
+ if {$nettm > 0} {
+ append s [format " (%.2f net-sec.)" [expr {$nettm / 1000.0}]]
}
puts "Total $s:"
lset _(m) 0 [format %.6f $wtm]
lset _(m) 2 $wcnt
- lset _(m) 4 [format %.3f [expr {$wcnt / (($nett ? $nett : ($tcnt * [lindex $_(reptime) 0])) / 1000.0)}]]
+ lset _(m) 4 [format %.3f [expr {$wcnt / (($nettm ? $nettm : ($tcnt * [lindex $_(reptime) 0])) / 1000.0)}]]
if {[llength $_(m)] > 6} {
- lset _(m) 6 [format %.3f $nett]
+ lset _(m) 6 [format %.3f $nettm]
}
puts $_(m)
puts "Average:"