Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chronoxor/CppBenchmark
/ init
Function
init
examples/executor.cpp:13–18 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
11
const int THREADS = 8;
12
13
void init()
14
{
15
auto benchmark = BENCHCODE_SCOPE(
"Initialization"
);
16
17
std::this_thread::sleep_for(std::chrono::seconds(2));
18
}
19
20
void calculate()
21
{
Callers
1
main
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected