Re: [tcljava-dev] Prototype Jacl Runtime Compiler
Brought to you by:
mdejong
From: Bruce J. <nm...@ma...> - 2005-09-20 11:32:53
|
I've found that when developing the code I just released that I had to rely on "artificial" benchmarks. Because most of my real code uses constructs such as "foreach", for which the body is not yet compiled, I wouldn't see any performance change in "real" code. Though ultimately any performance optimization scheme is irrelevant if it doesn't work well on real code, I'm not sure one can make substantial progress if one doesn't use simple benchmarks to understand where the performance bottlenecks are. As with Tom, I found a Java profiler useful The goal wasn't to try to eke out every bit of performance, but just to get some sense of which parts of the code were most important to worry about. I found the new profiler in NetBeans ( http://profiler.netbeans.org ) to work well. Bruce On Sep 19, 2005, at 4:30 PM, Tom Poindexter wrote: > On Mon, Sep 19, 2005 at 11:32:15AM -0700, Mo DeJong wrote: > >> Tom, what kind of scripts/tools were you using to measure this 1.3 -> >> 1.5 >> speed improvement? I have not found much "demo code" that was easy >> to use with Jacl for the testing runtime performance issues. One >> could always >> write a small loop and use time {...} to measure it, but that does >> not really > > > I must confess, most of my timings were mostly artificial. Since my > goal > was to cache TclParse (and thus TclToken) objects per proc, the tests > that > I used defined one or more procs and invoked those procs in for loops. > Certainly not real world examples, but good enough to get some > preliminary > results. > > I did use a Java profiler, JMP, to get the idea of caching TclParse. > I ran > the Jacl test suite, some of my real code, and some of my contrived > examples under the profiler. This gave me the idea for caching > TclParse > objects. > > Perhaps TclBench has some tests we can use? > > > -- > Tom Poindexter > tpo...@ny... > http://www.nyx.net/~tpoindex/ > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download it for free - -and be entered to win a 42" plasma tv or your > very > own Sony(tm)PSP. Click here to play: > http://sourceforge.net/geronimo.php > _______________________________________________ > tcljava-dev mailing list > tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcljava-dev > Bruce A. Johnson, President One Moon Scientific, Inc. EDC III 211 Warren St Newark, NJ 07103 Phone 908 517-5105 Fax 908 517-5107 Email br...@on... Web www.onemoonscientific.com |