-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Remove copy from
compute_row_evaluations
(#8875)
This PR simplifies `compute_row_evaluations` while slightly improving its performance. Before we had some unnecessary redundant zeroing of memory and many redundant copies. The code also had an unnecessarily complicated model of using void type functions that mutate their inputs when there is no advantage, so I refactor to make use of a more normal i/o model for clarity. I'm surprised there's not a better performance advantage, but we get a small benefit while also improving clarity. # x86 ``` Benchmark Time CPU Time Old Time New CPU Old CPU New -------------------------------------------------------------------------------------------------------------------- ClientIVCBench/Full/6 -0.0102 -0.0091 33216 32878 30724 30443 OVERALL_GEOMEAN -0.0102 -0.0091 33 33 31 30 ``` # WASM ``` Benchmark Time CPU Time Old Time New CPU Old CPU New -------------------------------------------------------------------------------------------------------------------- ClientIVCBench/Full/6 -0.0010 -0.0010 102429 102328 102429160000 102327660000 OVERALL_GEOMEAN -0.0010 -0.0010 102 102 102429160 102327660 ```
- Loading branch information
1 parent
ead4649
commit 9cd450e
Showing
6 changed files
with
84 additions
and
71 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env bash | ||
set -eu | ||
|
||
./scripts/compare_branch_vs_baseline_remote_wasm.sh client_ivc_bench 'Full/6$' | ||
./scripts/compare_branch_vs_baseline_remote.sh client_ivc_bench 'Full/6$' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env bash | ||
set -eu | ||
|
||
./scripts/compare_branch_vs_baseline_remote_wasm.sh client_ivc_bench 'Full/6$' |
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