GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - evanj/tpccbench: In memory TPC-C implementation. Used for a number of database research projects.

BranchesTags
Open more actions menu

Latest commit

 

History

35 Commits
35 Commits

Folders and files

NameName
Last commit message
Last commit date
CHEATS
CHEATS
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
assert.h
assert.h
 
 
btree.h
btree.h
 
 
btree_test.cc
btree_test.cc
 
 
clock.cc
clock.cc
 
 
clock.h
clock.h
 
 
mocktpccdb.h
mocktpccdb.h
 
 
randomgenerator.cc
randomgenerator.cc
 
 
randomgenerator.h
randomgenerator.h
 
 
randomgenerator_test.cc
randomgenerator_test.cc
 
 
runtests.sh
runtests.sh
 
 
stlutil.h
stlutil.h
 
 
stupidunit.cc
stupidunit.cc
 
 
stupidunit.h
stupidunit.h
 
 
tpcc.cc
tpcc.cc
 
 
tpccclient.cc
tpccclient.cc
 
 
tpccclient.h
tpccclient.h
 
 
tpccclient_test.cc
tpccclient_test.cc
 
 
tpccdb.cc
tpccdb.cc
 
 
tpccdb.h
tpccdb.h
 
 
tpccgenerator.cc
tpccgenerator.cc
 
 
tpccgenerator.h
tpccgenerator.h
 
 
tpccgenerator_test.cc
tpccgenerator_test.cc
 
 
tpcctables.cc
tpcctables.cc
 
 
tpcctables.h
tpcctables.h
 
 
tpcctables_test.cc
tpcctables_test.cc
 
 
valleak.py
valleak.py
 
 

Repository files navigation

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.

About

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

Resources

Readme
BSD-3-Clause license
Activity

Stars

39 stars

Watchers

0 watching

Forks

16 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.