()
| 50 | |
| 51 | |
| 52 | def run(): |
| 53 | parser = argparse.ArgumentParser() |
| 54 | parser.add_argument( |
| 55 | "-n", |
| 56 | "--no-cache", |
| 57 | default=False, |
| 58 | action="store_true", |
| 59 | help="Do not use cachecontrol", |
| 60 | ) |
| 61 | args = parser.parse_args() |
| 62 | |
| 63 | sess = requests.Session() |
| 64 | if not args.no_cache: |
| 65 | sess = CacheControl(sess) |
| 66 | |
| 67 | run_benchmark(sess) |
| 68 | |
| 69 | |
| 70 | if __name__ == "__main__": |
no test coverage detected