()
| 67 | |
| 68 | |
| 69 | def solution_times() -> tuple[float, float]: |
| 70 | setup_code = """ |
| 71 | from __main__ import dataset, triplet_sum1, triplet_sum2 |
| 72 | """ |
| 73 | test_code1 = """ |
| 74 | triplet_sum1(*dataset) |
| 75 | """ |
| 76 | test_code2 = """ |
| 77 | triplet_sum2(*dataset) |
| 78 | """ |
| 79 | times1 = repeat(setup=setup_code, stmt=test_code1, repeat=5, number=10000) |
| 80 | times2 = repeat(setup=setup_code, stmt=test_code2, repeat=5, number=10000) |
| 81 | return (min(times1), min(times2)) |
| 82 | |
| 83 | |
| 84 | if __name__ == "__main__": |