Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
f
Browse files Browse the repository at this point in the history
mbovel committed Nov 20, 2024

Verified

This commit was signed with the committer’s verified signature.
targos Michaël Zasso
1 parent fe176d1 commit 1be2c9d
Showing 3 changed files with 5 additions and 9 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
@@ -124,24 +124,21 @@ jobs:

# Compilation is done as a separate step from running the benchmarks
# simply to make the logs easier to read and to time it separately.
- name: Compile (non-bootstrapped)
run: sbtn "scala3-bench / Jmh / compile"
- name: Compile
run: sbtn "scala3-bench-bootstrapped / Jmh / compile"

- name: Run benchmarks (non-bootstrapped)
env:
# JMH filters selecting non-bootstrapped benchmarks to run.
# `-e` means "exclude".
JMH_FILTERS: ${{ env.IS_NIGHTLY && '-e Bootstrapped -e Nightly' || '-e Bootstrapped Nightly' }}
run: sbtn "scala3-bench / Jmh / run $JMH_ARGS $JMH_FILTERS"

- name: Compile (bootstrapped)
run: echo "scala3-bench-bootstrapped / Jmh / compile"
run: sbtn "scala3-bench / Jmh / run $JMH_ARGS $JMH_FILTERS" | tee $JMH_OUTPUT_PATH

- name: Run benchmarks (bootstrapped)
env:
# JMH filters selecting bootstrapped benchmarks to run.
JMH_BOOTSTRAPPED_FILTERS: ${{ env.IS_NIGHTLY && 'Bootstrapped -e Nightly' || 'BootstrappedNightly' }}
run: echo "scala3-bench-bootstrapped / Jmh / run $JMH_ARGS $JMH_BOOTSTRAPPED_FILTERS"
run: sbtn "scala3-bench-bootstrapped / Jmh / run $JMH_ARGS $JMH_BOOTSTRAPPED_FILTERS" | tee -a $JMH_OUTPUT_PATH

- name: Import results
env:
1 change: 0 additions & 1 deletion .github/workflows/bench_matrix.yml
Original file line number Diff line number Diff line change
@@ -68,7 +68,6 @@ jobs:
repo: context.repo.repo,
pull_number: context.payload.issue.number
});
console.log(data);
const base = {
commit: data.base.sha,
repo: data.base.repo.full_name
2 changes: 1 addition & 1 deletion bench/src/dotty/tools/benchmarks/generateBenchmarks.scala
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ import java.util.Random
* Called automatically by the benchmarks runner ([[Bench.main]]).
*/
def generateBenchmarks(genDirName: String) =
val thisFile = Paths.get("bench/src/dotty/tools/benchmarks/generateBenchmarks.scala")
val thisFile = Paths.get("src/dotty/tools/benchmarks/generateBenchmarks.scala")
val genDir = Paths.get(genDirName)

def generateBenchmark(subDirName: String, fileName: String, make: () => String) =

0 comments on commit 1be2c9d

Please sign in to comment.