owaiskazi19 commented on code in PR #16894:
URL: https://github.com/apache/lucene/pull/16894#discussion_r4519722498
##########
.github/workflows/run-benchmark-luceneutil.yml:
##########
@@ -0,0 +1,282 @@
+name: "Run benchmark: luceneutil (baseline vs candidate)"
+
+# Runs a luceneutil comparison of two Lucene commits, started by a benchmark
label on a pull request.
+# See dev-docs/benchmarking-pull-requests.md.
+
+# report-benchmark-luceneutil.yml reads the PR number and label from the run
name
+run-name: >-
+ ${{ github.event_name == 'pull_request'
+ && format('luceneutil benchmark for PR #{0} ({1})',
github.event.pull_request.number, github.event.label.name)
+ || 'luceneutil benchmark (manual)' }}
+
+on:
+ # The commit to benchmark is taken from the event, so it is the commit that
was labeled even if
+ # the PR changes afterwards.
+ pull_request:
+ types: [labeled]
+ workflow_dispatch:
+ inputs:
+ source:
+ description: "luceneutil corpus size"
+ type: choice
+ options:
+ - wikimedium1m
+ - wikimedium10k
+ default: wikimedium1m
+ baseline_ref:
+ description: "Baseline ref (empty = the commit this workflow runs on)"
+ type: string
+ default: ""
+ candidate_ref:
+ description: "Candidate ref (empty = the commit this workflow runs on)"
+ type: string
+ default: ""
+ iterations:
+ description: "Number of JVM iterations per competitor"
+ type: string
+ default: "20"
Review Comment:
Even with 20 iterations there is some spread per task for 1M docs and
reducing iterations doesn't impact the overall running time as such. We can
start 20 and then reduce/increase as needed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]