Module: Quandl::Client::Base::Benchmark
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/quandl/client/base/benchmark.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#benchmarks ⇒ Object
32 33 34 |
# File 'lib/quandl/client/base/benchmark.rb', line 32 def benchmarks @benchmarks ||= {} end |
#human_benchmarks ⇒ Object
28 29 30 |
# File 'lib/quandl/client/base/benchmark.rb', line 28 def human_benchmarks benchmarks.sort_by{|k,v| v }.reverse.collect{|k,v| "#{k}: #{v.microseconds}ms" }.join(' | ') end |