mirror of
https://github.com/Noratrieb/advent-of-code.git
synced 2026-01-16 10:35:02 +01:00
day1
This commit is contained in:
commit
2cfee8a448
11 changed files with 240 additions and 0 deletions
12
2023/day1/README.md
Normal file
12
2023/day1/README.md
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# day 1
|
||||
|
||||
benchmarks:
|
||||
|
||||
Ensure that `input.txt` contains many, many copies of the actual input, the actual input is way too small.
|
||||
|
||||
`cargo build --release && hyperfine 'target/release/day1 naive' 'target/release/day1 zero_alloc' 'target/release/day1 branchless'`
|
||||
```
|
||||
target/release/day1 branchless ran
|
||||
1.52 ± 0.06 times faster than target/release/day1 zero_alloc
|
||||
7.74 ± 0.27 times faster than target/release/day1 naive
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue