-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I replaced some range operations implemented by their mathematical definitions with optimized versions. ``` hyperfine --warmup 1 --runs 3 "target/profiling/main scripts/requirements/bio_embeddings.txt" "target/profiling/branch scripts/requirements/bio_embeddings.txt" Benchmark 1: target/profiling/main scripts/requirements/bio_embeddings.txt Time (mean ± σ): 13.062 s ± 0.620 s [User: 12.626 s, System: 0.344 s] Range (min … max): 12.394 s … 13.619 s 3 runs Benchmark 2: target/profiling/branch scripts/requirements/bio_embeddings.txt Time (mean ± σ): 5.184 s ± 0.405 s [User: 4.732 s, System: 0.391 s] Range (min … max): 4.901 s … 5.648 s 3 runs Summary target/profiling/branch scripts/requirements/bio_embeddings.txt ran 2.52 ± 0.23 times faster than target/profiling/main scripts/requirements/bio_embeddings.txt ```
- Loading branch information
Showing
4 changed files
with
221 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters