From 1de8425f071534d1b1548c7150b0f755acf09406 Mon Sep 17 00:00:00 2001 From: Jacob Wujciak-Jens Date: Tue, 27 Aug 2024 13:16:16 -0700 Subject: [PATCH] Remove wall time from BM report (#10829) Summary: The method I used to get the wall time is brittle against changes in the ninja log layout (e.g. through cmake or ninja updates) and currently making the plots useless due to an underflow. - remove wall time from plots - no longer track wall time Pull Request resolved: https://github.com/facebookincubator/velox/pull/10829 Reviewed By: DanielHunte Differential Revision: D61862320 Pulled By: kgpai fbshipit-source-id: 310d26e09c9317759c4c7733eb6041c504589db7 --- .github/workflows/build-metrics.yml | 1 + scripts/bm-report/report.qmd | 2 +- scripts/build-metrics.py | 3 +-- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-metrics.yml b/.github/workflows/build-metrics.yml index 98766847fa26f..2a3285e2f6ac2 100644 --- a/.github/workflows/build-metrics.yml +++ b/.github/workflows/build-metrics.yml @@ -18,6 +18,7 @@ on: pull_request: paths: - ".github/workflows/build-metrics.yml" + - "script/bm-report/**" workflow_dispatch: inputs: diff --git a/scripts/bm-report/report.qmd b/scripts/bm-report/report.qmd index 9951343deec0c..bca541e498411 100644 --- a/scripts/bm-report/report.qmd +++ b/scripts/bm-report/report.qmd @@ -87,7 +87,7 @@ format_tags <- function(x) { ```{r total-graphs} # Filter the data and layout the overview plots times_plot <- results |> - filter(tags.suite == "total", endsWith(tags.source, "time")) |> + filter(tags.suite == "total", endsWith(tags.source, "time"), tags.name != "wall_time") |> mutate( stats.data = lubridate::dseconds(stats.data), tags.name = format_tags(tags.name) diff --git a/scripts/build-metrics.py b/scripts/build-metrics.py index d172a03708b36..707d81eb6a31b 100755 --- a/scripts/build-metrics.py +++ b/scripts/build-metrics.py @@ -95,7 +95,7 @@ def _transform_results(self) -> List[BenchmarkResult]: class NinjaLogAdapter(BenchmarkAdapter): """ Adapter to extract compile and link times from a .ninja_log. - Will calculate aggregates for total, compile, link and wall time. + Will calculate aggregates for total, compile and link time. Suite metadata will be set based on binary ending to object, library or executable. Only files in paths beginning with velox/ will be tracked to avoid dependencies. @@ -135,7 +135,6 @@ def _transform_results(self) -> List[BenchmarkResult]: "link_time": 0, "compile_time": 0, "total_time": 0, - "wall_time": get_epoch(log_lines[-1]) - get_epoch(log_lines[0]), } for line in log_lines: