performance.rst 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. Performance Benchmark Report
  2. ============================
  3. Environment
  4. -----------
  5. Hardware
  6. ~~~~~~~~
  7. ‘Rather Snappy’ Laptop
  8. ^^^^^^^^^^^^^^^^^^^^^^
  9. - Dell Precison M3800 Laptop
  10. - 4x Intel(R) Core(TM) i7-4712HQ CPU @ 2.30GHz
  11. - 12Gb RAM
  12. - SSD
  13. ‘Ole Workhorse’ server
  14. ^^^^^^^^^^^^^^^^^^^^^^
  15. 8x Intel(R) Xeon(R) CPU X5550 @ 2.67GHz 16Gb RAM Magnetic drive, XXX RPM
  16. Software
  17. ~~~~~~~~
  18. - Arch Linux OS
  19. - glibc 2.26-11
  20. - python 3.5.4
  21. - lmdb 0.9.21-1
  22. Benchmark script
  23. ~~~~~~~~~~~~~~~~
  24. `Generator script <../../util/benchmark.py>`__
  25. The script was run with default values: 10,000 children under the same
  26. parent, PUT requests.
  27. Data Set
  28. ~~~~~~~~
  29. Synthetic graph created by the benchmark script. The graph is unique for
  30. each request and consists of 200 triples which are partly random data,
  31. with a consistent size and variation:
  32. - 50 triples have an object that is a URI of an external resource (50
  33. unique predicates; 5 unique objects).
  34. - 50 triples have an object that is a URI of a repository-managed
  35. resource (50 unique predicates; 5 unique objects).
  36. - 100 triples have an object that is a 64-character random Unicode
  37. string (50 unique predicates; 100 unique objects).
  38. Results
  39. -------
  40. .. _rather-snappy-laptop-1:
  41. ‘Rather Snappy’ Laptop
  42. ~~~~~~~~~~~~~~~~~~~~~~
  43. FCREPO/Modeshape 4.7.5
  44. ^^^^^^^^^^^^^^^^^^^^^^
  45. 15’45" running time
  46. 0.094" per resource (100%—reference point)
  47. 3.4M triples total in repo at the end of the process
  48. Retrieval of parent resource (~10000 triples), pipe to /dev/null: 3.64"
  49. (100%)
  50. Peak memory usage: 2.47Gb
  51. Database size: 3.3 Gb
  52. LAKEsuperior Alpha 6, LMDB Back End
  53. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  54. 25’ running time
  55. 0.152" per resource (161%)
  56. *Some gaps every ~40-50 requests, probably disk flush*
  57. Retrieval of parent resource (10K triples), pipe to /dev/null: 2.13"
  58. (58%)
  59. Peak memory usage: ~650 Mb (3 idle workers, 1 active)
  60. Database size: 523 Mb (16%)
  61. .. _ole-workhorse-server-1:
  62. ‘Ole Workhorse’ server
  63. ~~~~~~~~~~~~~~~~~~~~~~
  64. FCREPO
  65. ^^^^^^
  66. 0:47:38 running time
  67. 0.285" per resource (100%)
  68. Retrieval of parent resource: 9.6" (100%)
  69. LAKEsuperior
  70. ^^^^^^^^^^^^
  71. 1:14:19 running time
  72. 0.446" per resource (156%)
  73. Retrieval of parent resource: 5.58" (58%)
  74. Conclusions
  75. -----------
  76. LAKEsuperior appears to be markedly slower on writes and markedly faster
  77. on reads. Both these factors are very likely related to the underlying
  78. LMDB store which is optimized for read performance.
  79. Comparison of results between the laptop and the server demonstrates
  80. that both read and write performance gaps are identical in the two
  81. environments. Disk speed severely affects the numbers.
  82. **Note:** As you can guess, these are only very partial and specific
  83. results. They should not be taken as a thorough performance assessment.
  84. Such an assessment may be impossible and pointless to make given the
  85. very different nature of the storage models, which may behave radically
  86. differently depending on many variables.