Script Geek

Script is designed to do one thing: time how long a script takes to run.

When you press a Run button, a script will be compiled, run once (with the time taken noted), and then run however many times you have designated. The latter runs are full runs: the script is not run in an AppleScript repeat loop. The average is the total time taken for these latter runs, divided by the number of runs.

The Run Both button runs one script after the other, and values appear either side showing the ratio of the times taken; the left value is the left/top divided by the right/bottom, and the right value is the inverse. The ratios are based on the repeats (if any).

The Swap With Clipboard buttons make it easy to swap in new scripts. Click on the icon to toggle between side-by-side and top-bottom display.

At the bottom of the window you can set whether the app beeps when a run is complete, a separate color to be applied to handler calls, and a background color for the script panes.

The code is minimal, to avoid adding overhead, and the only claim of accuracy is that it will probably be more accurate than whatever you're using now — and hopefully more convenient.

Results are returned to three decimal places, and you're still likely to get variations with multiple runs. That's AppleScript for you. Don't obsess.

The last code run and the last number of iterations will be restored when you relaunch the application.

Script should end some arguments, although it will probably start more. It will run under Mac OS X 10.7 and later.

Script is © 2014 Shane Stanley, and free. There is no guarantee: you use it strictly at your own risk.

Click here to download version 1.2.7.