openmicroscopy/bioformats — pull request #234 by bpindelski (2012-11-19 16:30:33+00:00)
Title: Add stop watch for setId() in test-suite

Running the test suite with

./target-test-runner -f files.txt loci.tests.testng.OpenBytesPerformanceTest

where files.txt contains:

/Users/bpindelski/Desktop/testing/import/dv/test11_R3D.dv
/Users/bpindelski/Desktop/testing/import/burleigh/Burleigh.IMG
/Users/bpindelski/Desktop/testing/import/eps/image4.eps
/Users/bpindelski/Desktop/testing/import/gatan/biosamplefullframe.dm3
/Users/bpindelski/Desktop/testing/import/pyramid/101_pyramid
/Users/bpindelski/Desktop/testing/import/tillvision/dbb2E.pst

yields the results

Tag Avg(ms) Min Max Std Dev Count
loci.formats.in.BurleighReader.setId.Burleigh.IMG 40.0 40 40 0.0 1
loci.formats.in.DeltavisionReader.setId.test11_R3D.dv 103.0 103 103 0.0 1
loci.formats.in.EPSReader.setId.image4.eps 53.0 53 53 0.0 1
loci.formats.in.GatanReader.setId.biosamplefullframe.dm3 81.0 81 81 0.0 1
loci.formats.in.TiffDelegateReader.setId.101_pyramid 234.0 234 234 0.0 1
loci.formats.in.TillVisionReader.setId.dbb2E.pst 199.0 199 199 0.0 1

The results had to be hand-formatted, as the rollup in perf4j produces multiple entries per one setId operation. @mtbc offered help to write up a string parsing script.