3 ms·In Java, heap allocation is a single instruction, most of the time.by sz4kerto 10y agoIn Java, heap allocation is a single instruction, most of the time.foota 10y agoDo you mean a single jvm instruction? Or?zigzigzag 10y agoNo, he means a single CPU instruction. That's not quite fair, I don't think it actually is a single instruction, more like a few instructions in the best case and a very large number of instructions on the slow path.