I have written a small test case for investigating performance bottlenecks in extendscript environment.