predicates_test: Fix BenchmarkSign measuring empty loop#269
Conversation
|
These don't look like great benchmarks either way. They measure throughput, not latency. It would be better to create an array of points, then call Is there a reason you're interested in them? Are you going to optimize Sign? Or you just noticed an improbably fast timing? |
Yeah, just noticed the numbers were off, no plans to optimize anything (I don't really use Go). Happy to redo these with an array if you'd like. |
|
@xl4624 thanks for discovering this doesn't benchmark anything! I agree with @jmr's comment, it's best to make the benchmark even better by:
Could you make these changes before we merge the PR? |
Comparing assemblies from objdump:
Benchmarks: