Giter VIP home page Giter VIP logo

minitest-stackprofit's Introduction

minitest-stackprofit

home

github.com/seattlerb/minitest-stackprofit

rdoc

docs.seattlerb.org/minitest-stackprofit

DESCRIPTION:

A minitest plugin that runs your tests and outputs a stackprof profile. This lets you quickly and easily determine the bottlenecks in your code under test!

  • Make it right. (test first)

  • Make it work. (get to green)

  • Make it fast. (optimize)

FEATURES/PROBLEMS:

  • Provides a ‘–stackprof <path>` argument so you can make multiple profiles to compare over time.

  • Provides a ‘–stackprof-type (wall|cpu|object)` argument so you can profile in different ways.

SYNOPSIS:

% rake TESTOPTS="--stackprof=profile.dump"
Run options: -g --seed 59120

# Running:

..............................................................................
..............................................................................
..............................................................................
...................................................

Finished in 0.145769s, 1955.1482 runs/s, 5769.4023 assertions/s.

285 runs, 841 assertions, 0 failures, 0 errors, 0 skips

% stackprof profile.dump
==================================
  Mode: wall(1000)
  Samples: 999 (0.20% miss rate)
  GC: 0 (0.00%)
==================================
     TOTAL    (pct)     SAMPLES    (pct)     FRAME
       999 (100.0%)         999 (100.0%)     Something#very_slow
       999 (100.0%)           0   (0.0%)     TestMinitest::TestStackprof#test_wall_slow
       999 (100.0%)           0   (0.0%)     Minitest::Test#run
       999 (100.0%)           0   (0.0%)     Minitest::Test#capture_exceptions
       ... blah blah blah ...

REQUIREMENTS:

  • minitest

  • stackprof (‘gem install stackprof`)

  • ruby 2.6+

INSTALL:

  • sudo

    gem install minitest-stackprofit

LICENSE:

(The MIT License)

Copyright © Ryan Davis, seattle.rb

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ‘Software’), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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.