"Plasma" Benchmark

Author: Wayne Rasband (wayne@codon.nih.gov)
History: 2001/02/21: First version
2001/12/17: 640x480 window, no drawImage scaling
2001/12/21: Displays frames generated per second in parentheses
2002/09/30: Pixels are produced and drawn in the same thread
2002/10/01: Displays FPS in status bar
Source: Plasma_.java
Installation: Download Plasma_.class to the plugins folder and restart ImageJ.
Description: This is a plugin version of the "Plasma2" applet at
It continously generates and displays images and displays the frame rate in the ImageJ status bar.

Here are some test results in frames per second:

109    P3/400, Win95, JDK 1.4.1beta
100    P3/400, Win95, JDK 1.3.1
 49    P3/400, Win95, JRE 1.1.8
 42    P3/400, Win95, Microsoft Java
 36    PPC "G4"/400/, Mac OS 9, MRJ 2.2.5
 26    PPC "G4"/400/, Mac OS X, v10.2.1
Set 'sync' to false and recompile and to use separate unsynchronized threads for image generation and image display. On Mac OS X and Linux, this causes images to be produced at a higher rate than they are displayed, resulting in jerkiness and indicating a threading problem.

This plugin and ImageJ generate and display images in essentually the same way, with the exception that ImageJ always uses separate unsynchronized threads. ImageJ would run a lot faster on OS X if someone at Apple could figure out how to make this plugin run faster.

|Plugins | Home |