Created
January 30, 2015 12:37
-
-
Save osya/0c716f3cdf5f10a80c7d to your computer and use it in GitHub Desktop.
Example of Python profiler
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import datetime | |
import cProfile | |
import pstats | |
pr=cProfile.Profile() | |
pr.enable() | |
requests.get('http://torgi.gov.ru/lotSearchArchive.html') | |
pr.disable() | |
p = pstats.Stats(pr).sort_stats('tottime').print_stats() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment