diff options
author | sebres <sebres@users.sourceforge.net> | 2017-05-11 12:25:59 (GMT) |
---|---|---|
committer | sebres <sebres@users.sourceforge.net> | 2017-05-11 12:25:59 (GMT) |
commit | c8cfbe73a6df84730116e0513bbb3796f38ac89d (patch) | |
tree | e16664e0457b7eef36b2e64a10f2c59bdef65083 | |
parent | c2e83c20f16c23353d77d7bc14641ee3b70157b4 (diff) | |
download | tcl-c8cfbe73a6df84730116e0513bbb3796f38ac89d.zip tcl-c8cfbe73a6df84730116e0513bbb3796f38ac89d.tar.gz tcl-c8cfbe73a6df84730116e0513bbb3796f38ac89d.tar.bz2 |
performance test cases extended: several cases to cover absence of the ensemble overhead
-rw-r--r-- | tests-perf/clock.perf.tcl | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests-perf/clock.perf.tcl b/tests-perf/clock.perf.tcl index 733db1a..238e536 100644 --- a/tests-perf/clock.perf.tcl +++ b/tests-perf/clock.perf.tcl @@ -371,8 +371,34 @@ proc test-other {{reptime 1000}} { } } +proc test-ensemble-perf {{reptime 1000}} { + _test_run $reptime { + # Clock clicks (ensemble) + {clock clicks} + # Clock clicks (direct) + {::tcl::clock::clicks} + # Clock seconds (ensemble) + {clock seconds} + # Clock seconds (direct) + {::tcl::clock::seconds} + # Clock microseconds (ensemble) + {clock microseconds} + # Clock microseconds (direct) + {::tcl::clock::microseconds} + # Clock scan (ensemble) + {clock scan ""} + # Clock scan (direct) + {::tcl::clock::scan ""} + # Clock format (ensemble) + {clock format 0 -f %s} + # Clock format (direct) + {::tcl::clock::format 0 -f %s} + } +} + proc test {{reptime 1000}} { puts "" + test-ensemble-perf [expr {$reptime / 2}]; #fast enough test-format $reptime test-scan $reptime test-freescan $reptime |