Comments (6)
I've started looking at this and it seems like we're going to implement this one by hand. There's been nothing I've seen that will do this form of serialization by default, and nothing in particular that will integrate with serde.
from hyperfine.
Using something like https://docs.rs/comrak/0.2.8/comrak/ could work (create an AST that represents the table and pretty-print it via format_commonmark
).
On the other hand, maybe the easiest option for now would be to simply write!
the markdown table by hand. It doesn't necessarily have to look pretty in the source file.
from hyperfine.
True, in our case simply creating the encoded values ourselves will probably be best as it is rather simple. I'll move into that next since #45 is now ready
from hyperfine.
@sharkdp I've completed this in my export-markdown branch. I'll make a PR once #45 has been merged.
Export result:
Benchmark | Mean [ms] | Min. [ms] | Max. [ms] |
---|---|---|---|
ls -R ~ | echo "test" | 4.1 ± 0.7 | 1.2 | 6.5 |
ls -alR | echo "TEST" | 5.1 ± 0.9 | 3.2 | 11.2 |
from hyperfine.
Looks great! Maybe we could add backticks ("`") around the command such that it would render as code?
from hyperfine.
Missed your comment, adding it now
from hyperfine.
Related Issues (20)
- Add short flag counterparts
- Add short flags for `--export` HOT 2
- hyperfine 1.18.0 not published at crates.io HOT 1
- Usage of `hyperfine` to benchmark code HOT 1
- ETA not clearly visible on terminals with a block cursor HOT 1
- run commands only once per set of parameters they use
- Always in this "Initial time measurement" state HOT 6
- Include parameters in output HOT 2
- T
- `-N` makes me can't pass options for command which'll be benchmarked. HOT 1
- Output cpu, disc and memory information HOT 3
- hypperfine without --show-output hard to read on windows7 cmd console HOT 1
- Using --prepare increases benchmark results HOT 2
- Allow custom time measurements HOT 1
- Feature request: Remote commands HOT 1
- Provide Statically Compiled Binaries for (aarch64|arm64) Linux
- Incorrect result for fastfetch HOT 2
- RFE: advanced metrics beyond wall time (CPU time, instruction count, ...)
- Distribution via NPM HOT 3
- Hyperfine gets flagged as virus
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 hyperfine.