// Generates a synthetic image and displays the elapsed // time as the image title. For speed comparisons, versions // are available for all ImageJ scripting languages. // // Relative speeds (lower is better): // Java: 1 (0.012) // Macro: 25 // JavaScript (Rhino): 61 // Python: 67 // JavaScript (Java 6): 125 // BeanShell: 260 // // Delete ImageJ/plugins/jars/BeanShell.jar and restart ImageJ if // the BeanShell version takes more than a few seconds to run. size = 512; newImage("title", "32-bit black", size, size, 1); t0 = getTime; for (y=0; y