CS 412/413
Introduction to Compilers
Spring 2001

Object Instantiation

Instantiates 2*N objects and invokes their init method.  Uses the same classes as MethCall.im.  This tests the efficiency of your compiler's new operator for objects, and to a lesser extent, method dispatch and null object checking.

Source: [ObjInst.im objinst.cpp ObjInst.java]
Input:
N=1,000,001
Output:
Several toggle values (false true false true false true true false false false true true true)

C++ 0.06
Java 0.86
C 1.78
B 1.81
D 1.84
E 1.88
F 1.9
H 2.12