Module: RubyBenchmark
- Defined in:
- lib/ruby_benchmark.rb
Overview
Performs some Ruby benchmarks to calculate the Ruby benchmark index.
Class Method Summary collapse
-
.perform ⇒ Object
Call this method to start the Benchmark.
Class Method Details
.perform ⇒ Object
Call this method to start the Benchmark.
8 9 10 11 12 |
# File 'lib/ruby_benchmark.rb', line 8 def perform puts 'Benchmark is running, please wait...' time = Benchmark.realtime { all_benchmarks } puts "-> Your machine scored #{calculate_index(time)} points on the Ruby benchmark [v0.1]." end |