Re: [tcljava-user] Jacl Script Optimization
Brought to you by:
mdejong
From: Mo D. <mo...@mo...> - 2008-10-21 22:15:32
|
Fugate, Cris wrote: > > I am trying to optimize Jacl scripts inside an application called > Teamcenter. > > Unfortunately, I am not having any luck measuring the timing of code. > > I can use time in c-tcl. Can I expect the same relative performance > > Between Tcl commands in Jacl as in c-Tcl? > > > Hi Chris You might want to take a look at the TclBench test code inside the tcljava/tests directory. I used that to create the following comparison of C Tcl to TJC compiled Jacl: http://www.modejong.com/tcljava/tjc_results_6_20_2006/index.html The main thing is to make sure hotspot has warmed up and compiled your code before getting runtime numbers to compare. If you just grab some time via the time command, the results will be misleading unless hotspot has compiled the code. Also, make sure you use many thousands of iterations with the time command. If you need some more focused help with this project, I am available on a consulting basis for whatever optimization assistance you might need. Mo DeJong |