← Back to projects
Ruby Ext In Crystal Math
#Native Extension for Ruby written in Crystal
- Install crystal.
- Add ruby_ext_in_crystal_math to your Gemfile:
gem 'ruby_ext_in_crystal_math', github: 'gaar4ica/ruby_ext_in_crystal_math'
- 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