cProfile.runctx('[sign_url_cloudfront2("...") for x in range(0,100)]',
    globals(), locals(), sort='time')
How to cope with the performance of generating signed URLs for accessing private content via CloudFront?