-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #580 from candy-lang/golden-tests
Golden tests
- Loading branch information
Showing
100 changed files
with
31,669 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ jobs: | |
|
||
# Core | ||
- name: 'Core: run' | ||
run: cargo run --release -- check packages/Core/_.candy | ||
run: cargo run --release -- check ./packages/Core/_.candy | ||
|
||
# fuzzing: | ||
# name: Fuzzing | ||
|
@@ -34,7 +34,18 @@ jobs: | |
# - uses: dsherret/rust-toolchain-file@v1 | ||
# - uses: Swatinem/[email protected] | ||
|
||
# - run: cargo run --release -- fuzz packages/Benchmark.candy | ||
# - run: cargo run --release -- fuzz ./packages/Benchmark.candy | ||
|
||
check-goldens: | ||
name: Check Golden IR Files | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: dsherret/rust-toolchain-file@v1 | ||
- uses: Swatinem/[email protected] | ||
|
||
- name: Check Goldens | ||
run: cargo run --release -- debug gold check ./packages/Examples/ | ||
|
||
benchmark: | ||
name: Benchmark | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
name: PR | ||
|
||
on: pull_request_target | ||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- ready_for_review | ||
- synchronize | ||
|
||
jobs: | ||
add-labels: | ||
|
@@ -23,7 +28,7 @@ jobs: | |
- uses: technote-space/[email protected] | ||
|
||
automerge-pr: | ||
if: github.event.action == 'opened' | ||
if: (github.event.action == 'opened' && !github.event.pull_request.draft) || github.event.action == 'ready_for_review' | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
557f7a5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Compiler
Time: Compiler/hello_world
24455468
ns/iter (± 555349
)22075100
ns/iter (± 349299
)1.11
Time: Compiler/fibonacci
198992549
ns/iter (± 4270779
)176486071
ns/iter (± 1320730
)1.13
Time: VM Runtime/hello_world
65404
ns/iter (± 6839
)68001
ns/iter (± 3600
)0.96
Time: VM Runtime/fibonacci/15
454176201
ns/iter (± 7372299
)495027299
ns/iter (± 2346414
)0.92
Time: VM Runtime/PLB/binarytrees/6
2031122249
ns/iter (± 20507076
)2253706348
ns/iter (± 8215159
)0.90
This comment was automatically generated by workflow using github-action-benchmark.