mirror of
https://github.com/cupcakearmy/advent-of-code.git
synced 2025-12-11 20:54:59 +00:00
benchmarks
This commit is contained in:
38
README.md
38
README.md
@@ -1,5 +1,37 @@
|
||||
# Advent Of Code
|
||||
|
||||
> New days are generated with [`hygen`](https://github.com/jondot/hygen).
|
||||
>
|
||||
> `bun run gen --year 2022 --day 1`
|
||||
## Getting started
|
||||
|
||||
New "days" are generated with [`hygen`](https://github.com/jondot/hygen). This will bootstrap code for python and rust. See details about the specifica languages below
|
||||
|
||||
```bash
|
||||
# First time setup
|
||||
bun i
|
||||
|
||||
# Generate
|
||||
bun run gen --year 2022 --day 1
|
||||
```
|
||||
|
||||
## Python
|
||||
|
||||
## Rust
|
||||
|
||||
Run a single day:
|
||||
|
||||
```bash
|
||||
cargo run --bin 2022-01
|
||||
```
|
||||
|
||||
Bench a day:
|
||||
|
||||
```bash
|
||||
cargo bench --bin 2022-01
|
||||
```
|
||||
|
||||
Bench all days:
|
||||
|
||||
```bash
|
||||
cargo bench
|
||||
```
|
||||
|
||||
> The benchmark is the built in Rust one. This is the [reason](https://doc.rust-lang.org/cargo/commands/cargo-bench.html) for the _nightly_ version.
|
||||
|
||||
Reference in New Issue
Block a user