Question: Question: In python: Develop a 32-bit Floating point operation benchmark (reference time: 100 seconds) o 10**10 additions (of integer constants) o 510**9 multiplication (of integer

Question:

In python:

Develop a 32-bit Floating point operation benchmark (reference time: 100 seconds)

o 10**10 additions (of integer constants)

o 510**9 multiplication (of integer constants)

o 210**9 division (of integer constants)

--------------------------------------

code not functioning

import time

start_time = time.time() #floating point result = 0.0

#same operations for i in range(10**10): result = += i for i in range(5*10**9): result *= i for i in range(2*10**9): result /= i end_time = time.time()

execution_time = end_time - start_time

print("Execution time: ", execution_time)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!