Git Product home page Git Product logo

Comments (4)

kbaum avatar kbaum commented on June 14, 2024 1

Hi @DChalcraft. I haven't used coverband in a while but 20% seems like a lot to me. Coverband relies on ruby's standard library code coverage which is pretty fast and shouldn't have that much overhead. Coverband also needs to write data to redis which should also be quite fast.

I think it would be interesting to dig in and see what's happening in your case. If you can replicate the issue in development then I think we are in a good position to track this down using a flame graph. Here's a library that I have used.

https://github.com/SamSaffron/flamegraph

As mentioned in the readme you could also use rack-mini-profiler which is a convenience library built on top of flamegraph and allows for generating the flamegraph directly in your browser with a request parameter.

In the end, you really just need to execute a code sample with coverband and without and compare the two flamegraphs. Just make sure that you've reproduced the issue in dev with that code sample before bringing in flamegraphs.

Hope that helps!

from coverband.

danmayer avatar danmayer commented on June 14, 2024

yeah, I haven't seen anything that drastic in terms of performance impact. If you have more info on the size of project, rails version, ruby version, coverband version, machine memory / CPU, etc that might help.

If you haven't adjusted any of the various toggles like reporting wiggle etc it would be worth trying those out.

from coverband.

danmayer avatar danmayer commented on June 14, 2024

Did you try anything else? If you have any other info I can try to look...

  • rails / ruby versions
  • number of files
  • server: puma, unicorn, etc?
  • coverband configuration file / options?

Let me know if you are doing any other investigation or want some specific help or I will close this out.

from coverband.

DChalcraft avatar DChalcraft commented on June 14, 2024

We've had to move onto other things for now so haven't had a chance to come back to this. If we return in the future I will post an update. Thanks for the help!

from coverband.

Related Issues (20)

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.