mirror of
https://github.com/libretro/easyrpg-libretro.git
synced 2026-11-09 02:49:39 -10:00
20 lines
429 B
C++
20 lines
429 B
C++
#include <benchmark/benchmark.h>
|
|
#include <font.h>
|
|
#include <rect.h>
|
|
#include <bitmap.h>
|
|
#include <text.h>
|
|
#include <pixel_format.h>
|
|
#include <cache.h>
|
|
|
|
static void BM_ReplacePlaceholders(benchmark::State& state) {
|
|
for (auto _: state) {
|
|
Utils::ReplacePlaceholders("One night is %V %U",
|
|
Utils::MakeArray('V', 'U'),
|
|
Utils::MakeSvArray("Rest", "Do not Rest"));
|
|
}
|
|
}
|
|
|
|
BENCHMARK(BM_ReplacePlaceholders);
|
|
|
|
BENCHMARK_MAIN();
|