aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/utils/SkCamera.h
diff options
context:
space:
mode:
authorGravatar Yuqian Li <liyuqian@google.com>2017-09-21 13:23:49 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-09-21 17:44:53 +0000
commit3528eb319019b415c840349d2b35739bc2b38833 (patch)
treeec124c85f290b579b1fec7cb694601564ae5b5f6 /include/utils/SkCamera.h
parent3b7658a4752e1332c684ad757686ce9ee0e5fbd1 (diff)
Run the first bench for 1000ms to warm up the nanobench if FLAGS_ms < 1000.
Otherwise, the first few benches' measurements will be inaccurate. For example, without this CL, the first few measurements are: 337ns, 566µs, 1000µs, ... without "--ms 1000" arg 211ns, 285µs, 874µs, ... with "--ms 1000" arg With this CL, the first few measurements are: 195ns, 296µs, 1.03ms, ... without "--ms 1000" arg 204ns, 280µs, 859µs, ... with "--ms 1000" arg In the example above, the first two measurements are vastly (>50%) different without this CL. I think that's the reason why I keep using "--ms 1000" arg locally. But it's really only necessary for the first bench to warm up nanobench. It's a waste to apply "--ms 1000" to all the following benches. Bug: skia: Change-Id: I1924ba3ff9185ed89aeda72794fafd1fe6625eef Reviewed-on: https://skia-review.googlesource.com/49742 Reviewed-by: Yuqian Li <liyuqian@google.com> Commit-Queue: Yuqian Li <liyuqian@google.com>
Diffstat (limited to 'include/utils/SkCamera.h')
0 files changed, 0 insertions, 0 deletions