title: heroku slow code execution
body: <p>I am wondering why my node.js code on heroku is executing slower than my exact copy of that code on c9? I am running the code with the same database and choosing a more expensive dyno in heroku doesn't make a difference of course....</p>
  
  <p>the following example displays my console.logs with timestamp for each line of code...heroku constantly takes 2-3 times longer than c9 and I don't understand why.</p>
  
  <p>is this cpu concerned? But even if it is in theory, running heroku with the most expensive dyno doesn't help neither...
  Thank you so much in advance!</p>
  
  <p>heroku:</p>
  
  <pre><code>          mm:ss:SSS
  line 1:   53:35:456
  line 122: 53:35:460 - takes 4   ms
  line 145: 53:35:600 - takes 140 ms
  line 147: 53:35:671 - takes 71  ms
  line 149: 53:35:818 - takes 147 ms
  </code></pre>
  
  <p>c9:</p>
  
  <pre><code>line 1:   59:20:141
  line 122: 59:20:143 - takes 2  ms
  line 145: 59:20:189 - takes 46 ms
  line 147: 59:20:214 - takes 25 ms
  line 149: 59:20:257 - takes 43 ms
  </code></pre>