Giter VIP home page Giter VIP logo

Comments (4)

scjoe avatar scjoe commented on July 21, 2024

As far as i understand the specification http://www.tpc.org/tpc_documents_current_versions/pdf/tpc-c_v5.11.0.pdf, it's much simpler:
The specification says in 5.4 'The reported MQTh is the total number of completed New -Order transactions (see Clause 5.1.2), ...
divided by the elapsed time of the interval. ....
In your test this simply means 'txn_cnt / duration'
Or am i getting something wrong?

from py-tpcc.

apavlo avatar apavlo commented on July 21, 2024

@scjoe I haven't worked on this code in almost a decade. Can you provide the line numbers for what you want me to look at?

Also, you are correct that the TPC-C spec says to report NewOrders per minute. Academic papers typically report the total throughput for all five txn types.

The TPC-C spec also says that there is supposed to be a wait time and terminal output, but nobody implements those parts either.

from py-tpcc.

scjoe avatar scjoe commented on July 21, 2024

In results.py line 120 the rate per second is calculated. The txn_time is the total of all measurements for a transaction type, e.g. 'new orders'. But because these transactions runs in parallel (at least with more than one client), the calculated rate is not the number of processed transactions per second.

from py-tpcc.

asya999 avatar asya999 commented on July 21, 2024

Actually, technically it's correct, even if it's not useful. It's txn per second per thread so of course it'll be lower for multiple threads than for one thread.

from py-tpcc.

Related Issues (9)

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.