Skip to content

Commit a9a94b8

Browse files
committed
Add benchmark to CI
1 parent 14bb025 commit a9a94b8

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/bench.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Bench
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
pull_request:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
name: Benchmarks
14+
steps:
15+
- uses: actions/checkout@v2
16+
with:
17+
submodules: true
18+
- name: Set up Ruby
19+
uses: ruby/setup-ruby@v1
20+
with:
21+
ruby-version: '3.1.0'
22+
bundler-cache: true
23+
- name: Compile
24+
run: bundle exec rake compile
25+
- name: Encoder benchmark
26+
run: bundle exec ruby benchmark/encoder.rb
27+
- name: Parser benchmark
28+
run: bundle exec ruby benchmark/parser.rb
29+
- name: Valiate benchmark
30+
run: bundle exec ruby benchmark/validate.rb

0 commit comments

Comments
 (0)