Benchmarking your code with the Benchmark module

You can use the Benchmark module in your RM project

http://www.ruby-doc.org/stdlib-1.9.3/libdoc/benchmark/rdoc/Benchmark.html

Just get a copy of benchmark.rb and place it in your project folder, and then you should be good to go

require 'benchmark'class Game_Actor alias :th_benchmark_sample_refresh :refresh def refresh p Benchmark.measure { release_unequippable_items super } endendMight be useful.Here's a copy from 1.9.3 distributable

benchmark.zip
I just print out the time before and after a set of methods. I'm not sure how accurate that is compared to the Ruby benchmark. Still good to know that there is a distributable because Degica also stripped this module out of Ruby that I was looking for a while ago.

Original thread: https://forums.rpgmakerweb.com/threads/benchmarking-your-code-with-the-benchmark-module.17676/