Sha256: 69bb9e438471895dbdf7e895d4e165b425c9f436496301edd2340941ac0f45c9
Contents?: true
Size: 702 Bytes
Versions: 5
Compression:
Stored size: 702 Bytes
Contents
# frozen_string_literal: true require "bundler/setup" require "convenient_service" require "stackprof" class Service include ConvenientService::Standard::Config end Service.commit_config! ## # Quotes: # - stackprof will tell you what is impeding your progress. # - The assumption is the more times something shows up in the sample the more time it is taking. # # Docs: # - https://www.johnnunemaker.com/how-to-benchmark-your-ruby-gem # - https://github.com/tmm1/stackprof # profile = StackProf.run(mode: :wall, interval: 1_000) do 2_000_000.times { Service.commit_config! } end result = StackProf::Report.new(profile) puts result.print_text puts "\n\n\n" result.print_method(/commit_config!/)
Version data entries
5 entries across 5 versions & 1 rubygems