int (int actualInputSize, int actualUsedCpuCores) { int expectedOnMyMachine = (int)(((long)expectedMs) * actualInputSize / expectedInputSize); if (adjustForCPU) { expectedOnMyMachine *= usedReferenceCpuCores; expectedOnMyMachine = adjust(expectedOnMyMachine, Timings.CPU_TIMING, Timings.REFERENCE_CPU_TIMING, useLegacyScaling); expectedOnMyMachine /= actualUsedCpuCores; } if (adjustForIO) { expectedOnMyMachine = adjust(expectedOnMyMachine, Timings.IO_TIMING, Timings.REFERENCE_IO_TIMING, useLegacyScaling); } return expectedOnMyMachine; }