(self, quantile, interpolation, dtype)
| 182 | param_names = ["quantile", "interpolation", "dtype"] |
| 183 | |
| 184 | def setup(self, quantile, interpolation, dtype): |
| 185 | N = 10**5 |
| 186 | if dtype in ["int64", "uint64"]: |
| 187 | data = np.arange(N, dtype=dtype) |
| 188 | elif dtype == "float64": |
| 189 | data = np.random.randn(N) |
| 190 | else: |
| 191 | raise NotImplementedError |
| 192 | self.ser = pd.Series(data.repeat(5)) |
| 193 | |
| 194 | def time_quantile(self, quantile, interpolation, dtype): |
| 195 | self.ser.quantile(quantile, interpolation=interpolation) |