Giter VIP home page Giter VIP logo

Comments (4)

pharring avatar pharring commented on July 28, 2024

Yes, will be needed in Roslyn testing too.
I agree the test harness has to know about this difference and that should be expressed via the attributes. I think the current [Benchmark] attribute has too much implicit (hidden) cleverness. I would rather see some of that hoisted into a [SelfTuningBenchmark] (need a better name). The base [Benchmark] attribute should probably have nothing more than the iteration count and the (optional) warm-up flag. [ExternalBenchmark] would have include a time-out value, maybe an "expected exit code" (automatically fails the test) or an "expected output" (compare stdout/stderr to a string value). Perhaps an attribute isn't the right way to go about it; a static helper method would do just fine.

from xunit-performance.

sajayantony avatar sajayantony commented on July 28, 2024

If you guys come up with a better model then it would be interesting for us to adopt it. But in the mean time we had to get this done for our tests dotnet/wcf#43 and most likely will use this for our perf and stress.
/cc @roncain

from xunit-performance.

roncain avatar roncain commented on July 28, 2024

Yes, dotnet/wcf#43 represents our current strategy for being able to run external processes either locally or on another machine our tests need during their setup. The kinds of things we need these external processes to do may not be available in the framework where xunit is running (disqualifying xunit fixtures). The tests make http requests to a WebAPI app running independently, and that WebAPI app starts the appropriate process(es) with which the tests can interact. In our case, we are interested in the client-side (test-side) metrics, not the external process's.

from xunit-performance.

ericeil avatar ericeil commented on July 28, 2024

Now that iteration is under programmatic control in each test method, I'm not sure this topic is still relevant. Starting an external process per iteration is a simple matter of using Process.Start.

from xunit-performance.

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.