summaryrefslogtreecommitdiff
path: root/vulkan/libvulkan/driver.cpp
diff options
context:
space:
mode:
author Alice Ryhl <aliceryhl@google.com> 2023-07-28 15:11:11 +0000
committer Alice Ryhl <aliceryhl@google.com> 2024-01-09 10:04:32 +0000
commit4d46cd8051a340474a55053873ba4d9df3725c6b (patch)
tree643c2d8d09dc20c227846268e8f16b60efe3f284 /vulkan/libvulkan/driver.cpp
parentb39f05a60c4bd0fa3f71999dc259128eeb19fc08 (diff)
binderThroughputTest: compute percentiles exactly
Instead of using buckets to compute the percentiles, store all of the data and compute percentiles exactly by sorting. This avoids cases where the computed maximum latency is much much larger than the average latency. For example, with `-w 64 -i 100000 -p -t`, I got an average latency of 0.47ms, but the worst latency is 243ms. This puts everything below 1.8ms in the same bucket. Bug: 293593894 Test: Manually running the benchmark outputs the correct values Change-Id: Ib215e4fb503e053294525d944f045555aadae97f Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Diffstat (limited to 'vulkan/libvulkan/driver.cpp')
0 files changed, 0 insertions, 0 deletions