couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Russell Branca <chewbra...@gmail.com>
Subject All The Numbers - Round 1: CouchDB 1.2.x vs 1.3.x
Date Sun, 27 Jan 2013 20:12:54 GMT
Last night it was mentioned on #couchdb-dev that there were anecdotal
reports of performance regressions for 1.2.x -> 1.3.x in the view engine.
Here is an initial benchmark comparing the two.

TL;DR very minimal difference in performance on an admittedly not even
remotely exhaustive test suite.

CouchDB 1.2.x tests against branch 1653-fix-bootstrap_1.2.x.

CouchDB 1.3.x tests against branch 1.3.x as
of: 19c82720d339e2e91614096fa066f190d53ae426.

3 tests per branch. 100,000 docs in each test.

Docs of the form:

{
   "_id": "0fb447a7673dc722303d7c73c0000da0",
   "_rev": "1-420ce76d90d61af4934dfea1c87a7d21",
   "foo": 2686,
   "bar": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad
minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex
ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat
cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id
est laborum."
}

Where foo is the current count from 1..100,000.

View is:

function(doc) {
  if (doc.foo) {
    emit(doc.foo, null);
  }
}

Aggregated results:

$ curl -s
http://localhost:5989/all_the_numbers_results/_design/all_the_numbers/_view/by_test\?group_level\=1|
jq '.'

{
  "rows": [
    {
      "value": {
        "sumsqr": 1244.479691,
        "max": 20.521,
        "min": 20.285,
        "count": 3,
        "sum": 61.101
      },
      "key": [
        "base_spidermonkey_1_2_x"
      ]
    },
    {
      "value": {
        "sumsqr": 1194.9023100000002,
        "max": 20.039,
        "min": 19.858,
        "count": 3,
        "sum": 59.872
      },
      "key": [
        "base_spidermonkey_1_3_x"
      ]
    }
  ]
}


-Russell

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message