From: court3nay Date: 2009-04-17T08:25:05+09:00 Subject: Weird performance issue Hey, I'm debugging a weird performance issue. I have two VMs on the same server running the same OS (arch linux) and the same version of "enterprise" Ruby (ruby 1.8.6 (2008-08-08 patchlevel 286) [x86_64- linux]). On one machine, I get these numbers irb(main):004:0> Benchmark.realtime { require 'rubygems' } => 0.0482780933380127 irb(main):005:0> Benchmark.realtime { require 'tinder' } => 0.395686149597168 On the other, irb(main):002:0> Benchmark.realtime { require 'rubygems' } => 1.20596885681152 irb(main):003:0> Benchmark.realtime { require 'tinder' } => 5.7661280632019 Which is crazy. Over an order of magnitude. My question is, how can I trace what is taking all the time? It's not just requiring libraries -- I can reproduce with pure math. On the "fast" machine: irb(main):007:0> Benchmark.realtime { 1000.times { 10 ** rand (1000) } } => 0.00720095634460449 On the "slow" machine.... Benchmark.realtime { 1000.times { 10 ** rand(1000) } } => 0.142554998397827 Any ideas?