Comments (4)
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.
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.
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.
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)
- API fails to find tests on Linux when `MeasureInstructionsRetiredAttribute` is specified. HOT 1
- Emit benchmark and iteration events in stopwatch mode HOT 1
- Any way to get callbacks on benchmark events? HOT 4
- Consider running benchmarks in some fixed order HOT 7
- Add ability to define path for output files
- CS0103 The name 'Benchmark' does not exist in the current context HOT 7
- I don't see the Benchmark test method at "Test Explorer" HOT 4
- VSTS task to get reports HOT 1
- Exception: "The specified module could not be found" HOT 3
- Unable to run benchmarks from Test Explorer HOT 6
- XunitPerformanceHarness prints unwanted Console output HOT 4
- XUnitPerformanceHarness uses raw command line parsing as only configuration option HOT 1
- did we lose xunit pass-through options? HOT 2
- Some suggestions HOT 6
- Improper cleanup of ETL files HOT 7
- XUnitPerformanceHarness.RunBenchmarks Exception "The specified module could not be found" HOT 8
- System.Runtime.InteropServices.COMException: 'The WMI data block or event notification has already been enabled. (Exception from HRESULT: 0x8007106E)' HOT 4
- Warn if benchmarking in debug mode HOT 1
- Warn if benchmarking with debugger attached HOT 3
- Unable to install the package HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xunit-performance.