Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Uguisudani

856 views

Published on

uguisudani

Published in: Entertainment & Humor
  • Be the first to comment

Uguisudani

  1. 1. uguisudaniのご紹介 moriyoshi
  2. 2. uguisudaniとは • https://github.com/moriyoshi/ uguisudani/ • Pure PHP in-memory NoSQL server • 734 lines of code • Crash recovery (journaling)
  3. 3. uguisudaniの構造 Request Handler stream_select() Store Proxy Client Client Client Memory Store Journal Handler array() メタデータ fwrite() Metadata 30秒おきに 書き出し 更新操作を 逐次記録 serialize() fwrite() fwrite() Data file file Journal File
  4. 4. 性能測定 • 500000件のレコードの挿入 • そのなかから50000件の検索 • 全くチューニングしていない MongoDBとの比較
  5. 5. 結果 • uguisudani • write500000: 113.6sec • read50000: 14.6sec • MongoDB • write500000: 61.3sec • read50000: 0.03sec
  6. 6. 意外と速いな...

×