On macOS, calls to mach_absolute_time take about 40% of the (headless) simulation time. Based on a brief investigation, I assume that this call is mostly related to filling the b2Profile struct. Therefore, avoiding profiling could save almost half of the CPU runtime. I also assume that other platforms will have similar performance gains.
On macOS, calls to
mach_absolute_timetake about 40% of the (headless) simulation time. Based on a brief investigation, I assume that this call is mostly related to filling theb2Profilestruct. Therefore, avoiding profiling could save almost half of the CPU runtime. I also assume that other platforms will have similar performance gains.