Skip to content

Commit

Permalink
Update result: ran benchmark with --warmup 2, closed all apps before
Browse files Browse the repository at this point in the history
  • Loading branch information
hesampakdaman committed May 19, 2024
1 parent 7c21e33 commit 585855d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,23 @@ The input file can be obtained by using one of the official scripts, such as thi
*This project will load the _entire_ file into memory and process it using all available CPU cores to maximize performance.*

*** Results
On a MacBook M1 Pro (2021), the project processes the input file in ~2.8 seconds.
On a MacBook M1 Pro (2021) the project processes the input file in ~2.75 seconds.
#+begin_src bash
λ > cargo build --release; hyperfine "./target/release/rust_1brc ./measurements.txt" --warmup 2
Finished `release` profile [optimized] target(s) in 0.16s
Benchmark 1: ./target/release/rust_1brc ./measurements.txt
Time (mean ± σ): 2.820 s ± 0.046 s [User: 23.995 s, System: 1.667 s]
Range (min … max): 2.745 s … 2.879 s 10 runs
Time (mean ± σ): 2.746 s ± 0.017 s [User: 23.851 s, System: 1.659 s]
Range (min … max): 2.718 s … 2.777 s 10 runs
#+end_src

** Usage
To use this project, start by cloning the repository.
To use this project start by cloning the repository,
#+begin_src bash
git clone https://github.com/hesampakdaman/rust_1brc.git
cd rust_1brc
#+end_src

Then you can build and run the project with the following command.
then you can build and run the project with the following command.
#+begin_src bash
cargo run --release /path/to/measurements.txt
#+end_src
Expand Down

0 comments on commit 585855d

Please sign in to comment.