1. 09 4月, 2014 12 次提交
    • Y
      [JNI] Add an initial benchmark for java binding for rocksdb. · 0f5cbcd7
      Yueh-Hsuan Chiang 提交于
      Summary:
      * Add a benchmark for java binding for rocksdb.  The java benchmark
        is a complete rewrite based on the c++ db/db_bench.cc and the
        DbBenchmark in dain's java leveldb.
      * Support multithreading.
      * 'readseq' is currently not supported as it requires RocksDB Iterator.
      
      * usage:
      
        --benchmarks
          Comma-separated list of operations to run in the specified order
              Actual benchmarks:
                      fillseq    -- write N values in sequential key order in async mode
                      fillrandom -- write N values in random key order in async mode
                      fillbatch  -- write N/1000 batch where each batch has 1000 values
                                    in random key order in sync mode
                      fillsync   -- write N/100 values in random key order in sync mode
                      fill100K   -- write N/1000 100K values in random order in async mode
                      readseq    -- read N times sequentially
                      readrandom -- read N times in random order
                      readhot    -- read N times in random order from 1% section of DB
              Meta Operations:
                      delete     -- delete DB
          DEFAULT: [fillseq, readrandom, fillrandom]
      
        --compression_ratio
          Arrange to generate values that shrink to this fraction of
              their original size after compression
          DEFAULT: 0.5
      
        --use_existing_db
          If true, do not destroy the existing database.  If you set this
              flag and also specify a benchmark that wants a fresh database,  that benchmark will fail.
          DEFAULT: false
      
        --num
          Number of key/values to place in database.
          DEFAULT: 1000000
      
        --threads
          Number of concurrent threads to run.
          DEFAULT: 1
      
        --reads
          Number of read operations to do.  If negative, do --nums reads.
      
        --key_size
          The size of each key in bytes.
          DEFAULT: 16
      
        --value_size
          The size of each value in bytes.
          DEFAULT: 100
      
        --write_buffer_size
          Number of bytes to buffer in memtable before compacting
              (initialized to default value by 'main'.)
          DEFAULT: 4194304
      
        --cache_size
          Number of bytes to use as a cache of uncompressed data.
              Negative means use default settings.
          DEFAULT: -1
      
        --seed
          Seed base for random number generators.
          DEFAULT: 0
      
        --db
          Use the db with the following name.
          DEFAULT: /tmp/rocksdbjni-bench
      
      * Add RocksDB.write().
      
      Test Plan: make jbench
      
      Reviewers: haobo, sdong, dhruba, ankgup87
      
      Reviewed By: haobo
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D17433
      0f5cbcd7
    • Y
    • I
      Fix GetProperty() test · 731e55c0
      Igor Canadi 提交于
      Summary:
      GetProperty test is flakey.
      Before this diff: P8635927
      After: P8635945
      
      We need to make sure the thread is done before we destruct sleeping tasks. Otherwise, bad things happen.
      
      Test Plan: See summary
      
      Reviewers: ljin, sdong, haobo, dhruba
      
      Reviewed By: ljin
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D17595
      731e55c0
    • Y
      Merge pull request #110 from ankgup87/jni · 2e0d4321
      Yueh-Hsuan Chiang 提交于
      [JNI] Add JNI bindings for rocksdb Options
      2e0d4321
    • I
      Fix Mac OS compile issues · 34455deb
      Igor Canadi 提交于
      34455deb
    • I
      Remove env_ from MergingIterator · 5b345b76
      Igor Canadi 提交于
      Summary: env_ is not used. Compiling for iOS complains.
      
      Test Plan: compiles now
      
      Reviewers: ljin, haobo, sdong, dhruba
      
      Reviewed By: ljin
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D17589
      5b345b76
    • L
      db_bench cleanup · 0c1126d4
      Lei Jin 提交于
      Summary:
      clean up the db_bench a little bit. also avoid allocating memory for key
      in the loop
      
      Test Plan:
      I verified a run with filluniquerandom & readrandom. Iterator seek will be used lot
      to measure performance. Will fix whatever comes up
      
      Reviewers: haobo, igor, yhchiang
      
      Reviewed By: igor
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D17559
      0c1126d4
    • I
      Small speedup of CompactionFilterV2 · beeee9dc
      Igor Canadi 提交于
      Summary: ToString() is expensive. Profiling shows that most compaction threads are stuck in jemalloc, allocating a new string. This will help out a litte.
      
      Test Plan: make check
      
      Reviewers: haobo, danguo
      
      Reviewed By: danguo
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D17583
      beeee9dc
    • L
      macros for perf_context · 92c1eb02
      Lei Jin 提交于
      Summary: This will allow us to disable them completely for iOS or for better performance
      
      Test Plan: will run make all check
      
      Reviewers: igor, haobo, dhruba
      
      Reviewed By: haobo
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D17511
      92c1eb02
    • Y
      [JNI] Fixed a column family related compile error. · 5abae2c8
      Yueh-Hsuan Chiang 提交于
      Summary:
      Fixed the following column family related compile error.
      
      ./java/rocksjni/write_batch.cc:211:66: error: cannot initialize a parameter of type 'rocksdb::ColumnFamilyMemTables *' with an lvalue of type 'rocksdb::MemTable *'
        rocksdb::Status s = rocksdb::WriteBatchInternal::InsertInto(b, mem, &options);
                                                                         ^~~
      
      Test Plan:
      make jni
      make jtest
      
      Reviewers: igor, haobo
      
      CC: leveldb
      
      Differential Revision: https://reviews.facebook.net/D17577
      5abae2c8
    • A
      Fix formatting issues · 8a509717
      Ankit Gupta 提交于
      8a509717
    • A
      Fix formatting · 14220442
      Ankit Gupta 提交于
      14220442
  2. 08 4月, 2014 12 次提交
  3. 07 4月, 2014 2 次提交
  4. 05 4月, 2014 9 次提交
  5. 04 4月, 2014 5 次提交