MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / main

Function main

test/benchmark/benchmark_memset.cpp:155–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153#endif
154
155int main()
156{
157 for(int copySizeI = MIN_COPY; copySizeI < MAX_COPY; copySizeI <<= 1)
158 for(int copySizeJ = 1; copySizeJ <= copySizeI; copySizeJ <<= 1)
159 {
160 testCases.push_back(copySizeI | copySizeJ);
161 }
162
163 std::sort(testCases.begin(), testCases.end());
164#if defined(__EMSCRIPTEN__) && !defined(BUILD_FOR_SHELL)
165 emscripten_set_main_loop(main_loop, 0, 0);
166#else
167 while(!testCases.empty()) run_one();
168 print_results();
169#endif
170}

Callers

nothing calls this directly

Calls 7

run_oneFunction · 0.70
print_resultsFunction · 0.70
push_backMethod · 0.65
sortFunction · 0.50
beginMethod · 0.45
endMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected