Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
"benchmark" 1px txn with simulated latency
name old time/op new time/op delta SingleRoundtripTxnWithLatency_0-8 2.42ms ± 0% 1.65ms ± 0% ~ (p=1.000 n=1+1) SingleRoundtripTxnWithLatency_10-8 25.3ms ± 0% 13.2ms ± 0% ~ (p=1.000 n=1+1) Both changes are not statistically relevant due to the high cost of a single operation, but the second number is actually consistent (the first will fluctuate somewhat). Their value is mostly in showing the benefit of 1pc transactions end-to-end from the KV client. before: PASS BenchmarkSingleRoundtripTxnWithLatency_0-8 20000 2418298 ns/op BenchmarkSingleRoundtripTxnWithLatency_10-8 1000 25316220 ns/op ok github.com/cockroachdb/cockroach/kv 89.027s PASS after: BenchmarkSingleRoundtripTxnWithLatency_0-8 10000 1647978 ns/op BenchmarkSingleRoundtripTxnWithLatency_10-8 2000 13190856 ns/op ok github.com/cockroachdb/cockroach/kv 44.214s
- Loading branch information