[4.2-06-11][benchmark] Fix integer overflow issues on 32-bit platforms
The automatic scaling mechanism may end up with iteration counts greater than 2^31, leading to integer overflow.
(cherry picked from commit f7c4832bfe8050fa25adb5a25b02a78e3724e640)