Files
Yukihiro "Matz" Matsumoto 13e2ce4249 mruby-benchmark: fix implementation for mruby environment
fix implementation to work correctly in mruby:
- use String#% instead of sprintf for formatting
- use $stdout directly for output instead of bare print/puts
- add nil check for $stdout to handle test environments
- use Object.const_defined? instead of defined? keyword
- create new Tms instance with label instead of instance_variable_set
- add dependencies: mruby-sprintf and mruby-io

Co-authored-by: Claude <noreply@anthropic.com>
2025-12-02 23:12:36 +09:00

11 lines
427 B
Ruby

MRuby::Gem::Specification.new('mruby-benchmark') do |spec|
spec.license = 'MIT'
spec.author = 'mruby developers'
spec.summary = 'benchmarking and profiling tools'
spec.add_dependency('mruby-time', :core => 'mruby-time')
spec.add_dependency('mruby-objectspace', :core => 'mruby-objectspace')
spec.add_dependency('mruby-sprintf', :core => 'mruby-sprintf')
spec.add_dependency('mruby-io', :core => 'mruby-io')
end