Posted by
Joachim Wesner on
Feb 07, 2008; 6:23pm
URL: http://imagej.273.s1.nabble.com/Re-ImageJ-benchmarks-tp3697260p3697263.html
Hi Gabriel,
it does not work as is on my system ("Benchmark" is not found), IJ 139q/Win
2000,
I need to remove the extra space in
run("Benchmark ");
Mit freundlichen Grüßen / Best regards
Joachim Wesner
Leica Microsystems CMS GmbH | GmbH mit Sitz in Wetzlar | Amtsgericht
Wetzlar HRB 2432
Geschäftsführer: Dr. Stefan Traeger | Dr. Wolf-Otto Reuter | Dr. David Roy
Martyr | Colin Davis
Gabriel Landini
<
[hidden email]
C.UK> An
Gesendet von:
[hidden email]
ImageJ Interest Kopie
Group
<
[hidden email]. Thema
GOV> Re: ImageJ benchmarks
07.02.2008 13:58
Bitte antworten
an
ImageJ Interest
Group
<
[hidden email].
GOV>
Curtis wrote:
> I thought it was worthwhile to preserve these numbers in some form, so I
> created a FAQ entry on the wiki:
>
http://imagejdocu.tudor.lu/imagej-documentation-wiki/faq/are-there-performance-statistics-to-compare-against-my-system> If you create a better benchmark, it should be easy enough to update the
>information there, too.
I do not have a "better" benchmark, but running this macro gives almost all
the info necessary to fill the FAQ (it runs 10 times and gives the best and
worst times).
The worst time tends to be the first one, I guess that this is because of
the
classes loading.
Fell free to add it to the wiki page if you think it is useful.
Regards,
Gabriel
//---------------------8<---------------------
// benchmark test macro
//
print("- - - ");
run("Mandrill (70K)");
print("ImageJ: "+getVersion());
print("OS : "+getInfo("os.name")+" "+getInfo("os.version"));
print("Java: "+getInfo("java.vm.version")+" "+ getInfo("java.vm.vendor"));
best=100000;
worst=-1;
for(i=0;i<10;i++){
selectWindow("baboon.jpg");
run("Duplicate...", "title=test");
t=getTime();
run("Benchmark ");
thisrun= getTime()-t;
if (thisrun<best) best=thisrun;
if (thisrun>worst) worst=thisrun;
close();
}
print("Benchmark best: "+best/1000);
print("Benchmark worst: "+worst/1000);
selectWindow("baboon.jpg");
close();
//---------------------8<---------------------
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit
http://www.messagelabs.com/email
______________________________________________________________________