Git Product home page Git Product logo

newsqlbenchmark's Introduction

MongoDB vs TiDB vs CockroachDB benchmark

测试环境

cpu: Intel(R) Core(TM) i7-3610QM CPU @ 2.30GHz mem: 32GB os: Ferora Linux 24

安装和启动MongoDB

wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.2.11.tgz tar zxvf mongodb-linux-x86_64-3.2.11.tgz mkdir db ./bin/mongod --path db

安装和启动TiDB

下载压缩包

wget http://download.pingcap.org/tidb-latest-linux-amd64.tar.gz wget http://download.pingcap.org/tidb-latest-linux-amd64.sha256

检查文件完整性,返回 ok 则正确

sha256sum -c tidb-latest-linux-amd64.sha256

解开压缩包

tar -xzf tidb-latest-linux-amd64.tar.gz cd tidb-latest-linux-amd64

./bin/tidb-server

安装和启动CockroachDB

wget https://binaries.cockroachdb.com/cockroach-latest.linux-amd64.tgz tar xfz cockroach-latest.linux-amd64.tgz cd cockroach-latest.linux-amd64 ./cockroach

测试A 100%写0%读

Benchmark.png

结论: 1.MongoDB的写入性能还是远远高于NewSQL的,而且随着访问的增多,性能没有下降,反而请求少的时候没有完全发挥 2.TiDB的写入性能在前期要比CockroachDB,但是随着访问量的增多,性能下降明显,只有最初的一半,甚至低于CockroachDB 3.CockroachDB的性能虽然最差,但是非常平稳

newsqlbenchmark's People

Contributors

imdgit avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.