Skip to content

Latest commit

 

History

History
55 lines (54 loc) · 6.71 KB

postgres-vs-mongo.md

File metadata and controls

55 lines (54 loc) · 6.71 KB

Postgres vs MongoDB

⭐ Script  __benchmarks__/postgres-vs-mongo.js
  ⇶ Suite  mongodb vs postgres
    ➤ Perform  simple test
      ✓ Measure 1000 postgres inserts
        ┌──────────┬──────────┬──────────┬─────────┬─────────────┬───────┐
        │ (index)  │   med    │   p95    │   p99   │    total    │ count │
        ├──────────┼──────────┼──────────┼─────────┼─────────────┼───────┤
        │ 2.232527 │ 2.256009 │ 2.917856 │ 5.41444 │ 2408.708534 │ 1000  │
        └──────────┴──────────┴──────────┴─────────┴─────────────┴───────┘
      ✓ Measure 1000 mongodb inserts
        ┌──────────┬──────────┬──────────┬──────────┬─────────────┬───────┐
        │ (index)  │   med    │   p95    │   p99    │    total    │ count │
        ├──────────┼──────────┼──────────┼──────────┼─────────────┼───────┤
        │ 2.955035 │ 2.981828 │ 5.038826 │ 5.467477 │ 3233.680552 │ 1000  │
        └──────────┴──────────┴──────────┴──────────┴─────────────┴───────┘
      ✓ Measure 1000 postgres query data
        ┌─────────┬──────────┬──────────┬──────────┬────────────┬───────┐
        │ (index) │   med    │   p95    │   p99    │   total    │ count │
        ├─────────┼──────────┼──────────┼──────────┼────────────┼───────┤
        │ 0.28218 │ 0.297544 │ 0.393615 │ 0.561729 │ 308.713494 │ 1000  │
        └─────────┴──────────┴──────────┴──────────┴────────────┴───────┘
      ✓ Measure 1000 mongodb query data
        ┌──────────┬──────────┬──────────┬──────────┬───────────┬───────┐
        │ (index)  │   med    │   p95    │   p99    │   total   │ count │
        ├──────────┼──────────┼──────────┼──────────┼───────────┼───────┤
        │ 0.457289 │ 0.461665 │ 0.693627 │ 0.919116 │ 495.27099 │ 1000  │
        └──────────┴──────────┴──────────┴──────────┴───────────┴───────┘
      ✓ Measure 1000 postgres query inserts
        ┌──────────┬──────────┬──────────┬──────────┬─────────────┬───────┐
        │ (index)  │   med    │   p95    │   p99    │    total    │ count │
        ├──────────┼──────────┼──────────┼──────────┼─────────────┼───────┤
        │ 2.491574 │ 2.500577 │ 3.524734 │ 6.177946 │ 2681.101875 │ 1000  │
        └──────────┴──────────┴──────────┴──────────┴─────────────┴───────┘
      ✓ Measure 1000 mongodb query inserts
        ┌──────────┬──────────┬──────────┬─────────┬─────────────┬───────┐
        │ (index)  │   med    │   p95    │   p99   │    total    │ count │
        ├──────────┼──────────┼──────────┼─────────┼─────────────┼───────┤
        │ 3.946823 │ 3.921073 │ 5.969672 │ 6.26903 │ 3954.008642 │ 1000  │
        └──────────┴──────────┴──────────┴─────────┴─────────────┴───────┘
      ✓ Measure 1000 postgres group data
        ┌──────────┬──────────┬──────────┬──────────┬────────────┬───────┐
        │ (index)  │   med    │   p95    │   p99    │   total    │ count │
        ├──────────┼──────────┼──────────┼──────────┼────────────┼───────┤
        │ 0.287954 │ 0.272375 │ 0.347489 │ 0.494122 │ 279.076014 │ 1000  │
        └──────────┴──────────┴──────────┴──────────┴────────────┴───────┘
      ✓ Measure 1000 mongodb group data
        ┌──────────┬──────────┬──────────┬──────────┬────────────┬───────┐
        │ (index)  │   med    │   p95    │   p99    │   total    │ count │
        ├──────────┼──────────┼──────────┼──────────┼────────────┼───────┤
        │ 0.564809 │ 0.556707 │ 0.666702 │ 0.851308 │ 569.134585 │ 1000  │
        └──────────┴──────────┴──────────┴──────────┴────────────┴───────┘