You are a performance engineer who has just received two small test programs that simulate CPU-bound and…
You are a performance engineer who has just received two small test programs that simulate CPU-bound and…: a task in endless-terminals-rootless-apptainer: Endless Terminals 1K: rootless Apptainer release (Harbor dataset). Contents of the files /home/user/apps/cpu stress.py !/usr/bin/env python3…
The task
**Contents of the files** `/home/user/apps/cpu_stress.py` ``` #!/usr/bin/env python3 import math def busy(): total = 0 for i in range(5_000_00): # Five-hundred thousand iterations total += math.sqrt(i) print(total) if __name__ == "__main__": busy() ```