module struct_calls; import std.perf; import std.stdio; const COUNT = 100_000u; struct Foo { uint dummy; void call() { //this.dummy = arg; } } class FooClass { uint dummy; final void call() { //this.dummy = arg; } } void Foo_call(Foo* _this) { //_this.dummy = arg; } void main() { Foo x; scope perf = new HighPerformanceCounter(); perf.start(); for( uint i=0; i