Skip to content

benchmarks: show main and PR primal times in one table - #1513

Merged
yebai merged 3 commits into
mainfrom
bench-report
Oct 2, 2026
Merged

yebai merged 3 commits into
mainfrom
bench-report

Conversation

@yebai

@yebai yebai commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

The benchmark comment now shows one table: main and PR primal times side by side, then the PR's gradient ratios, with commit links above it. Main's collapsed table is removed. benchmarks/report.jl builds it from both jobs' output; unparseable main results show —.

Assisted-by: Codex <codex@openai.com>
@codecov

codecov Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.43%. Comparing base (529a9e8) to head (45c6a10).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1513      +/-   ##
==========================================
+ Coverage   84.34%   84.43%   +0.09%     
==========================================
  Files          53       53              
  Lines        4638     4633       -5     
==========================================
  Hits         3912     3912              
+ Misses        726      721       -5     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Row matching can associate a main timing with a different PR parameter dimension.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
What changed in this PR

Combines main and PR benchmark results into a single comparison table.

Changes:

  • Adds benchmark parsing and HTML report generation.
  • Updates CI to publish the combined table.
  • Documents the revised report format.
File Description
benchmarks/​report.jl Parses results and builds the comparison table.
benchmarks/​README.md Documents the combined output.
.github/​workflows/​Benchmarking.yml Generates and posts the new report.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread benchmarks/report.jl Resolved
@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

DynamicPPL.jl documentation for PR #1513 is available at:
https://TuringLang.github.io/DynamicPPL.jl/previews/PR1513/

Assisted-by: Codex <codex@openai.com>
@github-actions

github-actions Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Benchmarks

Performance Ratio: gradient time divided by log-density time.

For very small models these ratios are noisy across runs and machines; raw primal and gradient timings are more reliable. The benchmarks are aimed at DynamicPPL developers and mainly catch obvious allocation or type-stability regressions. See benchmark notes for details.

Primal times: main 529a9e8, PR 45c6a10

===============================================================================================================
                                                    primal                            gradient                 
                                            ----------------------  -------------------------------------------
Model                        dim    linked        main          PR     FwdDiff    RvsDiff    Mooncake    Enzyme
---------------------------------------------------------------------------------------------------------------
Simple assume observe*         1     false     3.63 ns     5.56 ns        9.73    1320.61       10.81      5.79
Simple assume observe*         1      true     3.73 ns     5.56 ns        9.54    1339.48       10.84      6.08
Smorgasbord                  201     false     4.29 μs     5.34 μs       70.23     147.35        5.86      2.87
Smorgasbord                  201      true     5.17 μs     6.43 μs       72.22     166.48        6.18      2.03
Loop univariate 1k          1000     false     10.4 μs     16.8 μs      785.49     327.77        2.99      0.78
Loop univariate 1k          1000      true     15.6 μs     18.1 μs     1302.34     302.57        2.81      0.72
Multivariate 1k             1000     false      1.2 μs    931.0 ns     1590.50    1049.33        1.89      5.60
Multivariate 1k             1000      true     1.18 μs    940.0 ns     1504.31    1094.47        1.97      7.77
Loop univariate 10k        10000     false     96.0 μs    163.0 μs    21204.53     361.14        3.03      0.74
Loop univariate 10k        10000      true    143.0 μs    177.0 μs    24818.36     336.39        2.86      0.68
Multivariate 10k           10000     false     12.5 μs     8.93 μs    26975.97    1131.42        1.72      5.11
Multivariate 10k           10000      true     12.5 μs     8.73 μs    27753.19    1139.82        1.76      5.16
Dynamic                      err     false     1.16 μs     1.33 μs         err      47.54       14.31      5.70
Dynamic                       10      true     1.56 μs     1.83 μs        1.63      62.41       13.46      6.89
Submodel*                      1     false     3.93 ns     5.57 ns        9.59    1624.49       10.34      6.13
Submodel*                      1      true     3.75 ns     5.57 ns        9.61    1547.40       11.69      6.08
LDA                            6      true     2.97 μs     3.72 μs        1.41      11.88       27.71     30.01
===============================================================================================================
Environment
Julia Version 1.13.1
Commit 96ca370cf0e (2026-09-25 19:34 UTC)
Build Info:
  Official https://julialang.org release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 4 × AMD EPYC 7763 64-Core Processor
  WORD_SIZE: 64
  LLVM: libLLVM-20.1.8 (ORCJIT, znver3)
  GC: Built with stock GC
Threads: 1 default, 1 interactive, 1 GC (on 4 virtual cores)

Assisted-by: Codex <codex@openai.com>
@yebai
yebai merged commit 968071d into main Oct 2, 2026
24 checks passed
@yebai
yebai deleted the bench-report branch October 2, 2026 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants