diff --git a/README.org b/README.org index 004f3b4..59453c3 100644 --- a/README.org +++ b/README.org @@ -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