Giter Club home page Giter Club logo

pytest-benchmark-commenter's Issues

Optional different formatting for output table for microtesting

Just want to start by saying thanks for creating this, it's a great addition to the github actions market.

Just deployed it to test our new library, but the library is a log parser where the tests are doing tight loops on the parsing methods, so the attributes we care most about are: operations per second, rounds taken and mean. However the mean times are in microseconds, so round down to 0.00 on the current table.

Not sure if you'd be interested in a fully configurable way to decide on units, and which columns to include, or just have a templated format option between normal testing and this sort of testing.

----------------------------------------------------------------------------------------------------- benchmark: 8 tests -----------------------------------------------------------------------------------------------------
Name (time in us)                                     Min                   Max                Mean              StdDev              Median                IQR            Outliers  OPS (Kops/s)            Rounds  Iterations
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
test_apache_access_speed                          19.3000 (1.0)        370.1000 (1.93)      21.7065 (1.0)        6.0220 (1.0)       20.3000 (1.0)       0.7000 (1.00)    1432;2866       46.0692 (1.0)       21979           1
test_cloudflare_access_speed                      48.8000 (2.53)       352.4000 (1.84)      54.0498 (2.49)      14.2508 (2.37)      50.6000 (2.49)      1.5000 (2.14)     536;1256       18.5014 (0.40)       8937           1
test_apache_access_speed_validation              102.7000 (5.32)       191.6000 (1.0)      107.8831 (4.97)      10.5300 (1.75)     105.0000 (5.17)      1.4500 (2.07)        10;22        9.2693 (0.20)        148           1
test_cloudflare_access_speed_with_validation     145.4000 (7.53)     3,078.3000 (16.07)    292.0481 (13.45)    265.1503 (44.03)    240.7500 (11.86)    56.1000 (80.14)        7;20        3.4241 (0.07)        158           1
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

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.