Skip to content

Commit 585855d

Browse files
committed
Update result: ran benchmark with --warmup 2, closed all apps before
1 parent 7c21e33 commit 585855d

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.org

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,23 @@ The input file can be obtained by using one of the official scripts, such as thi
66
*This project will load the _entire_ file into memory and process it using all available CPU cores to maximize performance.*
77

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

1618
** Usage
17-
To use this project, start by cloning the repository.
19+
To use this project start by cloning the repository,
1820
#+begin_src bash
1921
git clone https://github.com/hesampakdaman/rust_1brc.git
2022
cd rust_1brc
2123
#+end_src
2224

23-
Then you can build and run the project with the following command.
25+
then you can build and run the project with the following command.
2426
#+begin_src bash
2527
cargo run --release /path/to/measurements.txt
2628
#+end_src

0 commit comments

Comments
 (0)