Skip to content

Commit

Permalink
README.md: description of performance measurement
Browse files Browse the repository at this point in the history
(since people didn't stop asking for it)
  • Loading branch information
sebres authored Mar 15, 2024
1 parent a16b019 commit a08512e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,18 @@ Function | Performance increase | tclclockmod | tcl8.6-clock

The difference is much more larger, if the tests are running multi-threaded with parasitic load.

#### How the performance is measured:

Both tcl-core as well as tclclockmod has a file [tests-perf/clock.perf.tcl](./tests-perf/clock.perf.tcl) which can be used to compare the execution times of original clock and tclclockmod. It can be also simply performed from the tclsh, with and without loading of the module.<br/>
Here is a diff illustrating that (which amounted to almost 95x speed-up):
```diff
% timerate -calibrate {}
% clock scan "" -timezone :CET; clock scan "" -gmt 1; # warming up
% timerate { clock scan "2009-06-30T18:30:00 CEST" -format "%Y-%m-%dT%H:%M:%S %z" -gmt 1 }
- 62.0972 µs/# 16094 # 16103.8 #/sec 999.392 net-ms
+ 0.654699 µs/# 1437085 # 1527419 #/sec 940.858 net-ms
```

Tcl compatibility:
=================

Expand Down

0 comments on commit a08512e

Please sign in to comment.