Coder Social home page Coder Social logo

evanj / tpccbench Goto Github PK

View Code? Open in Web Editor NEW
37.0 2.0 17.0 367 KB

In memory TPC-C implementation. Used for a number of database research projects.

License: BSD 3-Clause "New" or "Revised" License

C++ 98.12% Shell 0.28% Python 1.13% Makefile 0.48%

tpccbench's Introduction

tpccbench

Stand-alone in-memory TPC-C implementation. This is based on the prototype used for the following VLDB 2007 paper:

http://www.vldb.org/conf/2007/papers/industrial/p1150-stonebraker.pdf

However it was rewritten and follows the spec more closely.

Evan Jones [email protected]

The benchmark program is "tpcc". This loads the TPC-C database with the specified number of warehouses, then executes a number of transactions (currently 200000). This benchmark is, I believe, a complete and correct TPC-C implementation. There are a few noted discrepancies noted in "CHEATS". If there are bugs, problems, fixes, or questions, please let me know.

I have another implementation that supports "locking." If you are interested in this, talk to me.

Overview of the code:

Everything that ends in _test is a unit test to verify that the code is correct.

tpccgenerate.cc: Code for loading the database. tpccclient.cc: Code for generating client requests. tpccdb.h: Definitions of the tuple types and constant tpcctables.cc: Actual implementation of the in-memory data structures and TPC-C stored procedures.

Type "make", then you can run ./tpcc. I get output like:

Loading 2 warehouses... 4504 ms Running... 200000 transactions in 6630 ms = 30167.577878 txns/s

Licensing

This was written during my PhD at MIT. However, I did go through MIT's open source office to release it under a BSD license. See the LICENSE file.

tpccbench's People

Contributors

evanj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.