-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf!: Faster and const time u64::lt snippet
Improve worst-case performance of `lt` snippet for `u64`. This snippet exists in two versions, one that consumes its input arguments, and one that does not. Both snippet's running time is improved with this change for the worst-case inputs but the snippet that preserves the arguments goes from 12 to 14 clock cycles in the common (best) case scenario. The arg-consuming snippet is improved for both the best-case and worst-case scenario.
- Loading branch information
1 parent
8dfd412
commit 7192858
Showing
13 changed files
with
260 additions
and
241 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[ | ||
{ | ||
"name": "tasmlib_arithmetic_u64_lt", | ||
"benchmark_result": { | ||
"clock_cycle_count": 14, | ||
"hash_table_height": 18, | ||
"u32_table_height": 43, | ||
"op_stack_table_height": 7, | ||
"ram_table_height": 0 | ||
}, | ||
"case": "CommonCase" | ||
}, | ||
{ | ||
"name": "tasmlib_arithmetic_u64_lt", | ||
"benchmark_result": { | ||
"clock_cycle_count": 14, | ||
"hash_table_height": 18, | ||
"u32_table_height": 66, | ||
"op_stack_table_height": 7, | ||
"ram_table_height": 0 | ||
}, | ||
"case": "WorstCase" | ||
} | ||
] |
24 changes: 24 additions & 0 deletions
24
tasm-lib/benchmarks/tasmlib_arithmetic_u64_lt_preserve_args.json
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,24 @@ | ||
[ | ||
{ | ||
"name": "tasmlib_arithmetic_u64_lt_preserve_args", | ||
"benchmark_result": { | ||
"clock_cycle_count": 14, | ||
"hash_table_height": 18, | ||
"u32_table_height": 35, | ||
"op_stack_table_height": 11, | ||
"ram_table_height": 0 | ||
}, | ||
"case": "CommonCase" | ||
}, | ||
{ | ||
"name": "tasmlib_arithmetic_u64_lt_preserve_args", | ||
"benchmark_result": { | ||
"clock_cycle_count": 14, | ||
"hash_table_height": 18, | ||
"u32_table_height": 38, | ||
"op_stack_table_height": 11, | ||
"ram_table_height": 0 | ||
}, | ||
"case": "WorstCase" | ||
} | ||
] |
24 changes: 0 additions & 24 deletions
24
tasm-lib/benchmarks/tasmlib_arithmetic_u64_lt_standard.json
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.