• Blacksmith test


    最近使用Blacksmith 对各种K,V数据库做了一些测试,从中了解了一些各种数据库的设计方式,比较各种数据库的性能

    BlaskSmith是我们自己的产品,详细的产品信息可以在github上看到 https://github.com/lawrencewu/blacksmith

    测试的数据库包括 bigmap, sessdb(https://github.com/lawrencewu/sessdb), leveldb(https://github.com/dain/leveldb)

    berkeleyDB(http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/downloads/index.html)  java edition

    mapdb http://www.mapdb.org

    以下的内容讲述如何使用Blacksmith对各种k,v数据库做测试

     准备工作

    1. download the blacksmith from github, it's a maven project

       the download address is https://github.com/lawrencewu/blacksmith

    2. Install

    $ unzip blacksmith.zip
    $ cd blacksmith
    $ mvn clean install
    
    3. run the test
    $ target/distribution/BlackSmith-1.0.0
    $ bin/local.sh

     4. run the high level test by trying

    $ target/distribution/BlackSmith-1.0.0
    $ bin/local.sh -c conf/local-benchmark-high-contention.xml
    

    5. run the low level test by trying

    $ target/distribution/BlackSmith-1.0.0
    $ bin/local.sh -c conf/local-benchmark-low-contention.xml
    

    6. after the above operation, we can get the report under the  reports folder.

      i.e. the comparison between different databases.

           

    How to add a plugin:

      The tool's only useful when you add another plugin to test other k,v databases. This senario shows how to add a plugin

      Step1:

        Add a folder under the plugins folder, named it whatever you like  e.g.  test

         Step2:

              Implements the  DBWrapper interface

        Step3:

              Replace the property file with your wrapper

        step4:

             config the project pom.xml file, add this plugin to the  module section, and copy files to the destination location

    you can try different test schema by changing the params in the StressTest tag.

    Params specification:

      1. numRequests 

               Total number of operation to be made against cache wrapper: reads + writes. Default is 50000.

          2. numEntries

        Number of keys on which all the GETs and PUTs are performed. Default is 100.

         

  • 相关阅读:
    快乐来源的研究
    这可能是经历中真实的农村
    golang入门到实战教程
    免费开源pdf阅读器SumatraPDF
    农村题材光棍儿
    在线头像卡通化
    微软出品电脑管家
    刚毕业的大学生、失业的父亲:父子返乡
    ApplicationEventPublisher的简单使用
    mysql里使用JSON_EXTRACT取值
  • 原文地址:https://www.cnblogs.com/ilawrence/p/3740623.html
Copyright © 2020-2023  润新知