Commit 3401b03
[Data] Add time to first batch metric for dataset iterators (ray-project#55758)
The time to first batch usually takes longer time than the subsequent
batches. This is because the time to first batch includes the time
needed for the pipeline to warm up. The iterator receives the batch once
the first few blocks have made it through all stages of the data
pipeline and piped to the train worker consumers.
Since we do prefetching and the data pipeline is in a steady state, so
the time to produce subsequent batches is much lower.
In this PR, we added a metric to track the time to first batch.
---------
Signed-off-by: xgui <xgui@anyscale.com>
Signed-off-by: Xinyuan <43737116+xinyuangui2@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Justin Yu <justinvyu@anyscale.com>
Signed-off-by: Masahiro Tanaka <mtanaka@anyscale.com>1 parent 0e500f1 commit 3401b03
File tree
3 files changed
+39
-3
lines changed- python/ray/data
- _internal
- block_batching
- tests
3 files changed
+39
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| 138 | + | |
138 | 139 | | |
139 | 140 | | |
140 | 141 | | |
| |||
235 | 236 | | |
236 | 237 | | |
237 | 238 | | |
238 | | - | |
| 239 | + | |
239 | 240 | | |
240 | 241 | | |
241 | 242 | | |
242 | 243 | | |
243 | 244 | | |
244 | 245 | | |
245 | | - | |
246 | | - | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
247 | 262 | | |
248 | 263 | | |
249 | 264 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
283 | 289 | | |
284 | 290 | | |
285 | 291 | | |
| |||
469 | 475 | | |
470 | 476 | | |
471 | 477 | | |
| 478 | + | |
472 | 479 | | |
473 | 480 | | |
474 | 481 | | |
| |||
948 | 955 | | |
949 | 956 | | |
950 | 957 | | |
| 958 | + | |
951 | 959 | | |
952 | 960 | | |
953 | 961 | | |
| |||
1003 | 1011 | | |
1004 | 1012 | | |
1005 | 1013 | | |
| 1014 | + | |
1006 | 1015 | | |
1007 | 1016 | | |
1008 | 1017 | | |
| |||
1642 | 1651 | | |
1643 | 1652 | | |
1644 | 1653 | | |
| 1654 | + | |
| 1655 | + | |
1645 | 1656 | | |
1646 | 1657 | | |
1647 | 1658 | | |
| |||
1665 | 1676 | | |
1666 | 1677 | | |
1667 | 1678 | | |
| 1679 | + | |
1668 | 1680 | | |
1669 | 1681 | | |
1670 | 1682 | | |
| |||
1685 | 1697 | | |
1686 | 1698 | | |
1687 | 1699 | | |
| 1700 | + | |
| 1701 | + | |
| 1702 | + | |
| 1703 | + | |
| 1704 | + | |
1688 | 1705 | | |
1689 | 1706 | | |
1690 | 1707 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
395 | 395 | | |
396 | 396 | | |
397 | 397 | | |
| 398 | + | |
398 | 399 | | |
399 | 400 | | |
400 | 401 | | |
| |||
577 | 578 | | |
578 | 579 | | |
579 | 580 | | |
| 581 | + | |
580 | 582 | | |
581 | 583 | | |
582 | 584 | | |
| |||
618 | 620 | | |
619 | 621 | | |
620 | 622 | | |
| 623 | + | |
621 | 624 | | |
622 | 625 | | |
623 | 626 | | |
| |||
1363 | 1366 | | |
1364 | 1367 | | |
1365 | 1368 | | |
| 1369 | + | |
1366 | 1370 | | |
1367 | 1371 | | |
1368 | 1372 | | |
| |||
0 commit comments