Edit

kc3-lang/angle/src/tests/angle_perftests.gni

Branch :

  • Show log

    Commit

  • Author : Jamie Madill
    Date : 2018-11-14 16:24:25
    Hash : f3acb8c1
    Message : Retool perf test running. This change does a few things involving the way we run the perf tests: - Perf test runner can capture different metrics Useful for capturing the new "nanoSecPerIteration" metric. - Removes the "score" metric We'll move to the new time-based metrics. These new metrics are scaled correctly with iteration counts. - Runs three trials per perf test This gives more measurements per test. Each trial is approximately one second. First the perf tests set a fixed number of iterations after calibrating the number of steps that we can run in one second. After that the three trials are run. This should give more stable results. - Apply more CPU stabilization on Windows Use SetPriorityClass to apply more CPU priority. Also upgrade SetThreadPriority to the highest level. - Always build the Vulkan command buffer test This catches build regressions more easily. We still skip the test on non-Android platforms. Bug: angleproject:2923 Change-Id: I7da234c5af07775ba4a232bb8d65e0138ee7073f Reviewed-on: https://chromium-review.googlesource.com/c/1330262 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: Yuly Novikov <ynovikov@chromium.org>

  • src/tests/angle_perftests.gni
  • # Copyright 2015 The ANGLE Project Authors. All rights reserved.
    # Use of this source code is governed by a BSD-style license that can be
    # found in the LICENSE file.
    
    angle_perf_tests_sources = [
      "perf_tests/ANGLEPerfTest.cpp",
      "perf_tests/ANGLEPerfTest.h",
      "perf_tests/BlitFramebufferPerf.cpp",
      "perf_tests/BindingPerf.cpp",
      "perf_tests/BitSetIteratorPerf.cpp",
      "perf_tests/BufferSubData.cpp",
      "perf_tests/CompilerPerf.cpp",
      "perf_tests/DispatchComputePerf.cpp",
      "perf_tests/DrawCallPerf.cpp",
      "perf_tests/DrawCallPerfParams.cpp",
      "perf_tests/DrawCallPerfParams.h",
      "perf_tests/DrawElementsPerf.cpp",
      "perf_tests/DynamicPromotionPerfTest.cpp",
      "perf_tests/EGLInitializePerf.cpp",
      "perf_tests/EGLMakeCurrentPerf.cpp",
      "perf_tests/ResultPerf.cpp",
      "perf_tests/IndexConversionPerf.cpp",
      "perf_tests/InstancingPerf.cpp",
      "perf_tests/InterleavedAttributeData.cpp",
      "perf_tests/LinkProgramPerfTest.cpp",
      "perf_tests/MultiviewPerf.cpp",
      "perf_tests/PointSprites.cpp",
      "perf_tests/TexSubImage.cpp",
      "perf_tests/TextureSampling.cpp",
      "perf_tests/TexturesPerf.cpp",
      "perf_tests/UniformsPerf.cpp",
      "perf_tests/third_party/perf/perf_test.cc",
      "perf_tests/third_party/perf/perf_test.h",
      "test_utils/angle_test_configs.cpp",
      "test_utils/angle_test_configs.h",
      "test_utils/angle_test_instantiate.cpp",
      "test_utils/angle_test_instantiate.h",
      "test_utils/draw_call_perf_utils.cpp",
      "test_utils/draw_call_perf_utils.h",
    ]
    
    angle_perf_tests_win_sources = [ "perf_tests/IndexDataManagerTest.cpp" ]
    
    angle_perf_tests_vulkan_sources = [
      "perf_tests/VulkanCommandBufferPerf.cpp",
      "perf_tests/VulkanPipelineCachePerf.cpp",
      "test_utils/third_party/vulkan_command_buffer_utils.cpp",
      "test_utils/third_party/vulkan_command_buffer_utils.h",
    ]