// This benchmark stresses instance creation and initializer calling. class Foo { init() {} } var start = clock(); var i = 0; while (i < 8000000) { Foo(); Foo(); Foo(); Foo(); Foo(); Foo(); Foo(); Foo(); Foo(); Foo(); Foo(); Foo(); Foo(); Foo(); Foo(); Foo(); Foo(); Foo(); Foo(); Foo(); Foo(); Foo(); Foo(); Foo(); Foo(); Foo(); Foo(); Foo(); Foo(); Foo(); i = i + 1; } print clock() - start;