Tk Library Source Code

View Ticket
Login
Ticket UUID: 1778143
Title: Make bench usable to benchmark extensions.
Type: RFE Version: None
Submitter: pointsman Created on: 2007-08-20 22:13:03
Subsystem: bench Assigned To: andreas_kupries
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2007-08-22 03:08:41
Resolution: Closed By: andreas_kupries
    Closed on: 2007-08-21 20:08:41
Description:
ATM, bench is only easy to use, if you want to benchmark different tcl core versions against a suite of bench files.

To benchmark different versions of a tcl extension with a  tcl core version (or with different tcl core verions) need some nasty handwork.

I propose another option to ::bench:run: -pkgdirs. If this option isn't given, ::bench::run behaves as it does now. 

If the option is given, it expects a list of dirs as argument. Then every interpreter in the run is setup to have every dir out of the -pkgdirs list as first dir in the auto_path variable. Every combination of interpreters  and dirs out of the -pkgdirs list will be reportet side by side. The empty list ({} or [list]) as one element of the -pkgdirs list let the interpreters use the (respective) 'default', installed extensions versions.

See the attached patch against tcllib head.

The patch misses doc updates (and version increment). If the idea itself and the implementation is accepted, I'll offer an enhanced patch.
User Comments: andreas_kupries added on 2007-08-22 03:08:41:
Logged In: YES 
user_id=75003
Originator: NO

Committed a modified patch, with slightly different option processing (-pkgdir (singular)) and defaults. All the wanted functionlaity is still present.

pointsman added on 2007-08-21 19:22:41:

File Added - 242147: patch_v2

Logged In: YES 
user_id=13222
Originator: YES

After email feedback by Andreas Kupries, I updated the patch. Minor changes, the propose still stands as outlined in the feature request.

Patch is still bare implementation.
File Added: patch_v2

pointsman added on 2007-08-21 05:13:06:

File Added - 242066: patch

Attachments: