File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -6,21 +6,23 @@ The input file can be obtained by using one of the official scripts, such as thi
6
6
*This project will load the _entire_ file into memory and process it using all available CPU cores to maximize performance.*
7
7
8
8
*** 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.
10
10
#+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
11
13
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
14
16
#+end_src
15
17
16
18
** Usage
17
- To use this project, start by cloning the repository.
19
+ To use this project start by cloning the repository,
18
20
#+begin_src bash
19
21
git clone https://github.com/hesampakdaman/rust_1brc.git
20
22
cd rust_1brc
21
23
#+end_src
22
24
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.
24
26
#+begin_src bash
25
27
cargo run --release /path/to/measurements.txt
26
28
#+end_src
You can’t perform that action at this time.
0 commit comments