libhevc-mirror/tests/common/BenchmarkCommon.h
Harish Mahendrakar 89da890161
Some checks failed
CMake / build (cmake, aarch64-linux-gnu-gcc, -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/aarch64_toolchain.cmake, aarch64-linux-gnu-g++, ubuntu-latest-cross-aarch64-cmake, ubuntu-latest) (push) Has been cancelled
CMake / build (cmake, arm-linux-gnueabihf-gcc, -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/aarch32_toolchain.cmake, arm-linux-gnueabihf-g++, ubuntu-latest-cross-aarch32-cmake, ubuntu-latest) (push) Has been cancelled
CMake / build (cmake, clang, , clang++, macos-latest-clang-cmake, macos-latest) (push) Has been cancelled
CMake / build (cmake, clang, , clang++, ubuntu-24.04-arm-clang-cmake, ubuntu-24.04-arm) (push) Has been cancelled
CMake / build (cmake, clang, , clang++, ubuntu-latest-clang-cmake, ubuntu-latest) (push) Has been cancelled
CMake / build (cmake, clang, -DSANITIZE=fuzzer-no-link,address, clang++, ubuntu-latest-clang-cmake-asan-fuzzer, ubuntu-latest) (push) Has been cancelled
CMake / build (cmake, clang, -G Ninja, clang++, ubuntu-latest-clang-cmake-ninja, ubuntu-latest) (push) Has been cancelled
CMake / build (cmake, gcc, , g++, ubuntu-latest-gcc-cmake, ubuntu-latest) (push) Has been cancelled
Added benchmark tests for ihevc modules
2026-09-26 11:04:34 -07:00

47 lines
1.7 KiB
C++

/******************************************************************************
*
* Copyright (C) 2026 Ittiam Systems Pvt Ltd, Bangalore
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
******************************************************************************/
#pragma once
#include <string>
#include <utility>
#include <vector>
// clang-format off
#include "ihevc_typedefs.h"
#include "iv.h"
// clang-format on
#include "TestCommon.h"
// Returns human-readable architecture name ("C", "SSSE3", "SSE42", "ARMV8", etc.)
inline std::string GetArchName(IV_ARCH_T arch) { return get_arch_str(arch); }
// Returns the list of architectures to benchmark, starting with ARCH_NA
// (generic C), followed by all supported target architectures returned by
// getTstArch().
const std::vector<IV_ARCH_T>& GetBenchmarkArchitectures();
// Common representative PU block sizes for Luma benchmarks
const std::vector<std::pair<int, int>>& GetBenchmarkLumaPUSizes();
// Common representative PU block sizes for Chroma benchmarks
const std::vector<std::pair<int, int>>& GetBenchmarkChromaPUSizes();
// Implemented by each benchmark executable to register its benchmark suite
void RegisterAllBenchmarks();