Commit eb3c0ef
authored
Manually fuse reindexing intermediates with blockwise reduction for cohorts. (#300)
* Manually fuse reindexing intermediates with blockwise reduction for cohorts.
```
| Change | Before [627bf2b] <main> | After [9d710529] <optimize-cohorts-graph> | Ratio | Benchmark (Parameter) |
|----------|----------------------------|---------------------------------------------|---------|-------------------------------------------------|
| - | 3.39±0.02ms | 2.98±0.01ms | 0.88 | cohorts.PerfectMonthly.time_graph_construct |
| - | 20 | 17 | 0.85 | cohorts.PerfectMonthly.track_num_layers |
| - | 23.0±0.07ms | 19.0±0.1ms | 0.83 | cohorts.ERA5Google.time_graph_construct |
| - | 4878 | 3978 | 0.82 | cohorts.ERA5Google.track_num_tasks |
| - | 179±0.8ms | 147±0.5ms | 0.82 | cohorts.OISST.time_graph_construct |
| - | 159 | 128 | 0.81 | cohorts.ERA5Google.track_num_layers |
| - | 936 | 762 | 0.81 | cohorts.PerfectMonthly.track_num_tasks |
| - | 1221 | 978 | 0.8 | cohorts.OISST.track_num_layers |
| - | 4929 | 3834 | 0.78 | cohorts.ERA5DayOfYear.track_num_tasks |
| - | 351 | 274 | 0.78 | cohorts.NWMMidwest.track_num_layers |
| - | 4562 | 3468 | 0.76 | cohorts.ERA5DayOfYear.track_num_tasks_optimized |
| - | 164±1ms | 118±0.4ms | 0.72 | cohorts.ERA5DayOfYear.time_graph_construct |
| - | 1100 | 735 | 0.67 | cohorts.ERA5DayOfYear.track_num_layers |
| - | 3930 | 2605 | 0.66 | cohorts.NWMMidwest.track_num_tasks |
| - | 3715 | 2409 | 0.65 | cohorts.NWMMidwest.track_num_tasks_optimized |
| - | 28952 | 18798 | 0.65 | cohorts.OISST.track_num_tasks |
| - | 27010 | 16858 | 0.62 | cohorts.OISST.track_num_tasks_optimized |
```
* fix typing1 parent 2439c5c commit eb3c0ef
File tree
3 files changed
+33
-19
lines changed- asv_bench/benchmarks
- flox
- tests
3 files changed
+33
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
| 17 | + | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
| 58 | + | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
96 | 97 | | |
97 | 98 | | |
98 | 99 | | |
| 100 | + | |
99 | 101 | | |
100 | 102 | | |
101 | 103 | | |
| |||
140 | 142 | | |
141 | 143 | | |
142 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
143 | 149 | | |
144 | 150 | | |
145 | 151 | | |
| |||
1438 | 1444 | | |
1439 | 1445 | | |
1440 | 1446 | | |
1441 | | - | |
| 1447 | + | |
| 1448 | + | |
| 1449 | + | |
| 1450 | + | |
1442 | 1451 | | |
1443 | 1452 | | |
1444 | 1453 | | |
| |||
1464 | 1473 | | |
1465 | 1474 | | |
1466 | 1475 | | |
1467 | | - | |
| 1476 | + | |
1468 | 1477 | | |
1469 | 1478 | | |
1470 | 1479 | | |
1471 | 1480 | | |
1472 | 1481 | | |
1473 | | - | |
| 1482 | + | |
1474 | 1483 | | |
1475 | 1484 | | |
1476 | 1485 | | |
1477 | 1486 | | |
1478 | 1487 | | |
1479 | 1488 | | |
1480 | | - | |
| 1489 | + | |
| 1490 | + | |
1481 | 1491 | | |
1482 | 1492 | | |
1483 | 1493 | | |
| |||
1651 | 1661 | | |
1652 | 1662 | | |
1653 | 1663 | | |
| 1664 | + | |
| 1665 | + | |
1654 | 1666 | | |
1655 | 1667 | | |
1656 | 1668 | | |
1657 | | - | |
1658 | | - | |
1659 | | - | |
1660 | | - | |
1661 | | - | |
| 1669 | + | |
| 1670 | + | |
| 1671 | + | |
1662 | 1672 | | |
1663 | 1673 | | |
1664 | 1674 | | |
1665 | 1675 | | |
1666 | 1676 | | |
1667 | | - | |
| 1677 | + | |
1668 | 1678 | | |
1669 | 1679 | | |
1670 | 1680 | | |
1671 | 1681 | | |
1672 | 1682 | | |
1673 | | - | |
| 1683 | + | |
1674 | 1684 | | |
1675 | 1685 | | |
1676 | 1686 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1465 | 1465 | | |
1466 | 1466 | | |
1467 | 1467 | | |
| 1468 | + | |
| 1469 | + | |
1468 | 1470 | | |
1469 | 1471 | | |
| 1472 | + | |
1470 | 1473 | | |
1471 | | - | |
| 1474 | + | |
1472 | 1475 | | |
1473 | 1476 | | |
| 1477 | + | |
1474 | 1478 | | |
1475 | | - | |
| 1479 | + | |
1476 | 1480 | | |
1477 | 1481 | | |
1478 | 1482 | | |
| |||
0 commit comments