(size: int, rand: random.Random)
| 66 | |
| 67 | |
| 68 | def list_sort_ascending_random(size: int, rand: random.Random) -> list[float]: |
| 69 | assert size >= 10, "This benchmark requires size to be >= 10" |
| 70 | result = list_sort_ascending(size, rand) |
| 71 | # Replace the last 10 with random floats. |
| 72 | result[-10:] = [rand.random() for _ in range(10)] |
| 73 | return result |
| 74 | |
| 75 | |
| 76 | def list_sort_ascending_one_percent(size: int, rand: random.Random) -> list[float]: |
nothing calls this directly
no test coverage detected
searching dependent graphs…