Skip to content

Latest commit

 

History

History
21 lines (18 loc) · 557 Bytes

README.md

File metadata and controls

21 lines (18 loc) · 557 Bytes

Native Extension for Ruby written in Crystal

  1. Install crystal.
  2. Add ruby_ext_in_crystal_math to your Gemfile:
gem 'ruby_ext_in_crystal_math', github: 'gaar4ica/ruby_ext_in_crystal_math'
  1. Run bundle install

Benchmark Results

$ irb
2.1.6 :001 > require 'common_math'
 => true
2.1.6 :002 > CommonMath.measure
       user     system      total        real
rb  7.940000   0.010000   7.950000 (  7.963207)
cr  0.430000   0.000000   0.430000 (  0.431696)
 => nil