Files
c3c/resources/examples/benchmarks.c3
2025-01-09 20:33:53 +01:00

30 lines
431 B
Plaintext

import std::thread;
fn void bench1() @benchmark
{
std::thread::sleep_ms(1)!!;
}
fn void bench123456789() @benchmark
{
std::thread::sleep_ms(2)!!;
}
fn void long_name_bench() @benchmark
{
std::thread::sleep_ms(3)!!;
}
fn void very_long_name_bench() @benchmark
{
return std::thread::sleep_ms(10);
}
fn void initialize() @init
{
set_benchmark_warmup_iterations(5);
set_benchmark_max_iterations(1000);
}