Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2ef57a8

Browse files
docs: update readme
1 parent d40060a commit 2ef57a8

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

‎README.md‎

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,6 @@ Solutions for [Advent of Code](https://adventofcode.com/) in [Rust](https://www.
66

77
<!--- advent_readme_stars table --->
88

9-
<!--- benchmarking table --->
10-
## Benchmarks
11-
12-
| Day | Part 1 | Part 2 |
13-
| :---: | :---: | :---: |
14-
| [Day 9](./src/bin/09.rs) | `19.0ns` | `19.0ns` |
15-
16-
**Total: 0.00ms**
179
<!--- benchmarking table --->
1810

1911
---
@@ -124,15 +116,15 @@ cargo all
124116
# Total: 0.20ms
125117
```
126118

127-
This runs all solutions sequentially and prints output to the command-line. Same as for the `solve` command, the `--release` flag runs an optimized build.
119+
This runs all solutions sequentially and prints output to the command-line. Same as for the `solve` command, the `--release` flag runs an optimized build and the `--time` flag outputs benchmarks.
128120

129-
#### Update readme benchmarks
121+
###➡️ Update readme benchmarks
130122

131-
The template can output a table with solution times to your readme.
123+
The template can write benchmark times to the README via the `cargo time` command.
132124

133-
In order to generate the benchmarking table, run `cargo time`. By default, this command checks for missing benchmarks, runs those solutions, and then updates the table. If you want to (re-)time all solutions, run `cargo time --force` flag. If you want to (re-)time a specific solution, run `cargo time <day>`.
125+
By default, this command checks for missing benchmarks, runs those solutions, and then updates the table. If you want to (re-)time all solutions, run `cargo time --all`. If you want to (re-)time one specific solution, run `cargo time <day>`.
134126

135-
Please note that these are not "scientific" benchmarks, understand them as a fun approximation. 😉 Timings, especially in the microseconds range, might change a bit between invocations.
127+
Please note that these are not _scientific_ benchmarks, understand them as a fun approximation. 😉 Timings, especially in the microseconds range, might change a bit between invocations.
136128

137129
### ➡️ Run all tests
138130

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /