zoukankan      html  css  js  c++  java
  • 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.

         

  • 相关阅读:
    工作常用mysql命令以及函数
    mybati 字段映射
    关于idea切换账号,上传的代码依旧是之前账号提交/操作git
    java 开发过程中常用
    简单了解微服务
    zookeeper 学习(二) java操作zookeeper
    zookeeper 学习(一) 初识zookeeper
    漫画:我们为何结婚,又为何不忠?
    适用 selenium 自动化的十大测试场景
    女朋友买房了,我我我....
  • 原文地址:https://www.cnblogs.com/ilawrence/p/3740623.html
Copyright © 2011-2022 走看看