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....
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.
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!
heroku:
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
c9:
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