Skip to content

Instantly share code, notes, and snippets.

@dot
Last active August 29, 2015 13:57
Show Gist options
  • Select an option

  • Save dot/9467021 to your computer and use it in GitHub Desktop.

Select an option

Save dot/9467021 to your computer and use it in GitHub Desktop.
mongohq diff of small and ssd_1g_elastic plan

performance check

find 10 ids

Benchmark.measure {100.times {CompletedSheet.find(ids)}}
no small ssd_1g_elastic
1 1.633871 0.803563
2 2.316147 1.083533
3 1.007594 0.639919
4 1.202081 0.968301
5 0.99812 0.861168
6 1.533603 0.917494
7 1.91035 0.793402
8 2.080687 0.783007
9 2.949292 1.050957
10 1.05136 0.891116
SUM 16.683105 8.79246
MAX 2.949292 1.083533
MIN 0.99812 0.639919
AVE 1.591961 0.883626

10回計測後に、最大・最小値を除いた8回の平均

180% faster

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment