Skip to content

Commit

Permalink
Leave only Slim benchmark in Hamlit
Browse files Browse the repository at this point in the history
  • Loading branch information
k0kubun committed Oct 9, 2022
1 parent 75ae3ce commit a59a103
Show file tree
Hide file tree
Showing 36 changed files with 1 addition and 1,173 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,6 @@ on:
jobs:
bench:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- slim: 1
- template: 'benchmark/boolean_attribute.haml,benchmark/class_attribute.haml,benchmark/id_attribute.haml,benchmark/data_attribute.haml,benchmark/common_attribute.haml'
- template: 'benchmark/dynamic_attributes/boolean_attribute.haml,benchmark/dynamic_attributes/class_attribute.haml,benchmark/dynamic_attributes/id_attribute.haml,benchmark/dynamic_attributes/data_attribute.haml,benchmark/dynamic_attributes/common_attribute.haml'
- template: 'benchmark/etc/attribute_builder.haml'
- template: 'benchmark/etc/static_analyzer.haml'
- template: 'benchmark/etc/string_interpolation.haml'
- template: 'test/haml/templates/standard.haml'
compile: 1
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
Expand All @@ -40,7 +28,3 @@ jobs:
- name: bundle install
run: bundle config path vendor/bundle && bundle install -j$(nproc) --retry 3
- run: bundle exec rake bench
env:
SLIM_BENCH: ${{ matrix.slim }}
TEMPLATE: ${{ matrix.template }}
COMPILE: ${{ matrix.compile }}
6 changes: 1 addition & 5 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,7 @@ end

desc 'bench task for CI'
task bench: :compile do
if ENV['SLIM_BENCH'] == '1'
cmd = %w[bundle exec ruby benchmark/slim/run-benchmarks.rb]
else
cmd = ['bin/bench', 'bench', ('-c' if ENV['COMPILE'] == '1'), *ENV['TEMPLATE'].split(',')].compact
end
cmd = %w[bundle exec ruby benchmark/run-benchmarks.rb]
exit system(*cmd)
end

Expand Down
File renamed without changes.
6 changes: 0 additions & 6 deletions benchmark/boolean_attribute.haml

This file was deleted.

5 changes: 0 additions & 5 deletions benchmark/class_attribute.haml

This file was deleted.

3 changes: 0 additions & 3 deletions benchmark/common_attribute.haml

This file was deleted.

File renamed without changes.
4 changes: 0 additions & 4 deletions benchmark/data_attribute.haml

This file was deleted.

4 changes: 0 additions & 4 deletions benchmark/dynamic_attributes/boolean_attribute.haml

This file was deleted.

4 changes: 0 additions & 4 deletions benchmark/dynamic_attributes/class_attribute.haml

This file was deleted.

2 changes: 0 additions & 2 deletions benchmark/dynamic_attributes/common_attribute.haml

This file was deleted.

2 changes: 0 additions & 2 deletions benchmark/dynamic_attributes/data_attribute.haml

This file was deleted.

2 changes: 0 additions & 2 deletions benchmark/dynamic_attributes/id_attribute.haml

This file was deleted.

4 changes: 0 additions & 4 deletions benchmark/dynamic_boolean_attribute.haml

This file was deleted.

25 changes: 0 additions & 25 deletions benchmark/dynamic_merger/benchmark.rb

This file was deleted.

50 changes: 0 additions & 50 deletions benchmark/dynamic_merger/hello.haml

This file was deleted.

50 changes: 0 additions & 50 deletions benchmark/dynamic_merger/hello.string

This file was deleted.

5 changes: 0 additions & 5 deletions benchmark/etc/attribute_builder.haml

This file was deleted.

Loading

0 comments on commit a59a103

Please sign in to comment.