Comments (7)
#15 is about letting the user run a custom analysis pass and for that we need to exposes the analysis methods (outliers, bootstrap, etc) as functions.
I think this issue should be prioritized over #15.
from criterion.rs.
This would be great if this could be done, happy to help. I am currently resorting to parsing the stdout which is not ideal.
My use case is, that I want the analyzed data shipped to a database so I can run easy comparisons over time.
from criterion.rs.
I would really appreviate this feature, I am currently using Criterion for automated performance regression tested, but parsing the output is not a reliable way to do it.
from criterion.rs.
Hi this is very appealing feature! I wonder when can we use this?
from criterion.rs.
I just wanted to hop in to ask for this as well. Currently, I'm using Criterion to compare several algorithms for a particular workload, and being able to more easily collect, correlate, and plot the output of multiple charts would be extremely useful.
As it is, I have to either parse the cargo bench
output, scrape the HTML reports, or use the unstable machine-readable output - none of which are attractive options. Ideally I'd be able to grab the output of the benchmarks by, say, passing a custom function to criterion_main!()
.
Is this something the project is interested in supporting? I'd be happy to write up a pull request if so.
from criterion.rs.
It would be most welcome. Significant architectural changes are probably needed, though.
from criterion.rs.
Not sure how helpful this would be, but one workaround would be to do something like:
https://gist.github.com/theJasonFan/65fa3e514a7fe7b179412f41f7c7168b
And invoke bench_function(...)
in a binary.
It's quite hacky though. Note that criterion expects to know all group and benchmark names before any benchmark is run to generate plots that compare performance. So running benchmarks this way and generating benchmark names programmatically via command line input might break things.
I think one could direct the output to a different directory with:
Line 700 in b61121b
from criterion.rs.
Related Issues (20)
- Where are baselines saved / is there a command to list saved baselines ? HOT 2
- Configuration via env variables
- Huge variance between successive bench runs without code changes. HOT 1
- Bench with huge input
- Unstable feature crate attribute not recognized in different modules
- Sample size scaling for running in CI HOT 1
- how to call async functions during setup process? HOT 1
- incorrect doc for iter_batched_ref
- profiling with iter_batched_ref
- AsyncBencher::iter_batched and iter_batched_ref should allow for async setup HOT 1
- [Question] Any idea to support multi threaded routine call for throughput test? HOT 1
- --profile-time doesn't work HOT 1
- panic in drop
- Custom Iter with async setup and non-async benched value
- "cargo bench -- <filter>" does not actually filter the benchmarks
- Can't call a function for the benchmark from the crate inside a Rust workspace HOT 1
- Quickstart instructions still use criterion 0.4
- Benchmarking With One function result as Input
- Help needed? HOT 5
- Found argument '--bench' which wasn't expected
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 criterion.rs.