Skip to content

Commit

Permalink
Merge branch 'main' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
etagwerker authored Nov 14, 2023
2 parents cb8b577 + 7797b38 commit 1824664
Show file tree
Hide file tree
Showing 32 changed files with 1,119 additions and 206 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Benchmarks

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
rake:
runs-on: ubuntu-latest

strategy:
matrix:
ruby-version: ['3.1', '3.0', '2.7', '2.5.1', '2.4.3', 'ruby-head',
'jruby-9.1.17.0', 'jruby-head', 'truffleruby-22.3.0',
'truffleruby-head']

steps:
- name: Set Share Env
if: github.ref_name == 'main'
run: |
echo "SHARE=1" >> $GITHUB_ENV
- uses: actions/checkout@v3
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Install dependencies
run: bundle install
- name: Run benchmarks
run: bundle exec rake

rake_old:
runs-on: ubuntu-20.04

strategy:
matrix:
ruby-version: ['2.3.0', '2.1.9', '2.2.10']

steps:
- name: Set Share Env
if: github.ref_name == 'main'
run: |
echo "SHARE=1" >> $GITHUB_ENV
- uses: actions/checkout@v3
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Install dependencies
run: bundle install
- name: Run benchmarks
run: bundle exec rake
21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ If you find any typos, errors, or have an better example. Just raise a new issue

<3

These idioms list here are trying to satisfiy following goals:
These idioms list here are trying to satisfy following goals:

[![GOALS](/images/Goals.png)](https://speakerdeck.com/sferik/writing-fast-ruby?slide=11)

Expand Down
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ source 'https://rubygems.org'

gem 'benchmark-ips', '>= 2.0'

gem 'activesupport', '>= 2.2.1'
gem 'e2mmap'

gem 'rake'
Loading

0 comments on commit 1824664

Please sign in to comment.