There is important information in your video that you did not put in the code.
The double-division code which runs in 1.15s is shown here
The single-division code which runs in 1.34s is shown here:
One important difference which is not evident in the posted question is the set of variables that are in your loop.
In the faster code, you have i
, j
, k
, index
, farm_size
.
In the slower code, you have i
, j
, k
, index
, farm_size
, and farm_area
.
So even though you're doing one less division, you're moving around more variables which is what is costing you the extra time.