Path: csiph.com!usenet.pasdenom.info!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!137.226.75.22.MISMATCH!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!news-1.dfn.de!news.dfn.de!news.informatik.hu-berlin.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: v_borchert@despammed.com (Volker Borchert) Newsgroups: comp.lang.java.programmer Subject: Re: method micro benachmarking with reflection Date: 30 Jul 2015 21:33:46 GMT Organization: Private site at Eddersheim, Germany Lines: 14 Distribution: world Message-ID: References: <7c2ab94b-ee4e-41c9-ae71-3896210e80b7@googlegroups.com> X-Trace: individual.net GRyYIZS2IIVQQ0eCepyASgN0k2fkyy/Os436CN9TMgFsrM5gUF Cancel-Lock: sha1:xNN8wrQHPHiC5yMsc3m3eODEt2s= Xref: csiph.com comp.lang.java.programmer:32218 Eric Sosman wrote: > Using JNI, you might be able to access chip-specific > low-level cycle counters or some such -- but even then, you'd have to > take it on faith that all the cycles between a method's start and end > were consumed by the method; what if the garbage collector decided to > preempt the method's thread for a few milliseconds? And what about the cost of going native? Or has that become a myth? -- "I'm a doctor, not a mechanic." Dr Leonard McCoy "I'm a mechanic, not a doctor." Volker Borchert