!7 cprint { switchable int count = 1000000; start-thread { long n = 0; O o = null; twice { time { repeat count { o = new Var(o); n = advancedThreadMXBean().getThreadAllocatedBytes(threadID()); } } print(n); } printMiniBenchResult("getThreadAllocatedBytes + making an object", count); } }