(self)
| 572 | |
| 573 | class Align: |
| 574 | def setup(self): |
| 575 | size = 5 * 10**5 |
| 576 | rng = np.arange(0, 10**13, 10**7) |
| 577 | stamps = np.datetime64("now").view("i8") + rng |
| 578 | idx1 = np.sort(np.random.choice(stamps, size, replace=False)) |
| 579 | idx2 = np.sort(np.random.choice(stamps, size, replace=False)) |
| 580 | self.ts1 = Series(np.random.randn(size), idx1) |
| 581 | self.ts2 = Series(np.random.randn(size), idx2) |
| 582 | |
| 583 | def time_series_align_int64_index(self): |
| 584 | self.ts1 + self.ts2 |