()
| 77 | |
| 78 | |
| 79 | def cprofileme(): |
| 80 | print("--------------- cProfile -----------------") |
| 81 | print("py") |
| 82 | cProfile.run("py()", sort=-1) |
| 83 | gc.collect() |
| 84 | get_accelerator().empty_cache() |
| 85 | print("cpp") |
| 86 | cProfile.run("cpp()", sort=-1) |
| 87 | gc.collect() |
| 88 | get_accelerator().empty_cache() |
| 89 | print("apex") |
| 90 | cProfile.run("apex()", sort=-1) |
| 91 | gc.collect() |
| 92 | get_accelerator().empty_cache() |
| 93 | |
| 94 | |
| 95 | #### timeit #### |
no test coverage detected