Complete the code to define the main goal of performance testing.
performance_goal = "Ensure the system [1] under expected load"
The main goal of performance testing is to ensure the system responds quickly under expected load.
Complete the code to specify the type of test that measures system behavior under heavy load.
test_type = "[1] testing"
Load testing measures system behavior under heavy load.
Fix the error in the code to correctly calculate response time in milliseconds.
response_time_ms = response_time_seconds [1] 1000
To convert seconds to milliseconds, multiply by 1000.
Complete the code to create a dictionary comprehension that maps each user to their response time if it is less than 200 ms.
fast_responses = {user: response for user, response in responses.items() if response [1] 200}The dictionary comprehension keeps the response as is (no operation), and filters responses less than 200 ms.
Fill all three blanks to create a dictionary comprehension that maps each test name in uppercase to its average response time if the time is greater than 100 ms.
avg_times = {test[1]: time for test, time in test_results.items() if time [2] 100 and test[3].startswith('load')}The test name is converted to uppercase for the key, the time is filtered to be greater than 100 ms, and the test name starts with 'load' in lowercase.