Groups | Search | Server Info | Keyboard shortcuts | Login | Register
Groups > comp.lang.java.programmer > #5825
| From | markspace <-@.> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: baseline performance test using java ... |
| Date | 2011-07-02 16:00 -0700 |
| Organization | A noiseless patient Spider |
| Message-ID | <iuo7tm$5ia$1@dont-email.me> (permalink) |
| References | <1309646728.550644@nntp.aceinnovative.com> |
On 7/2/2011 3:45 PM, lbrt chx _ gemale kom wrote: > ~ I have searched to no avail for some kind of hardware baseline > performance test for a piece of code. ~ Notice that I don't mean to > "profile" code, with "baseline" I mean that the actual performance of > an algorithm should me gauged against its underlying hardware and > OS, like its I/O subsystem (RAM (types, speed, amount), file access, > ...) As far as I know, performance should be measured relatively. That is, I run some code on my system, then make changes and run it again. I measure the speed up or slow down. Then I compare that to the first time. It's relative speed increase that matters. Speed on your system doesn't mean much to me. > ~ We have all learned we should avoid String(s) and use > StringBuffer(s) or better yet StringBuilder(s) but there is Er, no. Strings are great. They are immutable. This can give HUGE performance gains when dealing with multi-threaded code and such like (for example, lambda expressions). > java -version> version.txt java -verbose:class > -XX:+PrintGCTimeStamps -XX:+PrintGCDetails code class.txt 2>&1 No sure I follow the GC related stuffs. Is garbage collection somehow related to running speed? As for the rest of it, I'm not really convinced a general methodology or set of parameters could be produced. Too many variables. The devil in the details, and since code is little else but details, by substitution we can establish that in fact Satan is loose in your system.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
baseline performance test using java ... lbrt chx _ gemale kom - 2011-07-02 22:45 +0000 Re: baseline performance test using java ... markspace <-@.> - 2011-07-02 16:00 -0700 Re: baseline performance test using java ... Patricia Shanahan <pats@acm.org> - 2011-07-02 16:50 -0700
csiph-web