xxxxxxxxxx
# Brute force solution
import datetime
start_time = datetime.datetime.now()
[(a, b) for a in (1, 3, 5) for b in (2, 4, 6)]
# example snippet
end_time = datetime.datetime.now()
print end_time - start_time
# timeit solution
import timeit
min(timeit.repeat("[(a, b) for a in (1, 3, 5) for b in (2, 4, 6)]"))
# cProfile solution
import cProfile
cProfile.run("[(a, b) for a in (1, 3, 5) for b in (2, 4, 6)]")
xxxxxxxxxx
1. Check if the page load time is
within the acceptable range.
2. Check the page load on slow connections.
3. Check the response time for any action
under a light, normal, moderate, and heavy load conditions.
4. Check the performance of
database stored procedures and triggers.
5. Check the database query execution time.
6. Check for load testing of the application.
7. Check for the Stress testing of the application.
8. Check CPU and memory usage under peak load conditions.
xxxxxxxxxx
In software quality assurance, performance testing is in general a testing practice performed to determine how a system performs in terms of responsiveness and stability under a particular workload.