Commit 1ddbee7
committed
bigint mac3: tweak thresholds between algorithms
It's not too rigorous, but thresholds 32 and 256 give me better results.
Before:
test multiply_0 ... bench: 87 ns/iter (+/- 0)
test multiply_1 ... bench: 11,926 ns/iter (+/- 19)
test multiply_2 ... bench: 772,178 ns/iter (+/- 3,068)
test multiply_3 ... bench: 2,034,237 ns/iter (+/- 9,618)
After:
test multiply_0 ... bench: 87 ns/iter (+/- 0)
test multiply_1 ... bench: 11,927 ns/iter (+/- 64)
test multiply_2 ... bench: 672,440 ns/iter (+/- 3,570)
test multiply_3 ... bench: 1,577,065 ns/iter (+/- 11,137)1 parent 28d84ca commit 1ddbee7
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | | - | |
| 263 | + | |
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
268 | | - | |
| 268 | + | |
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
| |||
0 commit comments