const cpp_code = ` #include #include class [[cheerp::jsexport]] JsBridge { public: JsBridge() = default; void test() { volatile size_t counter = 0; for (int i = 0; i < 100000; ++i) { for (int j = 0; j < 10000; ++j) { counter++; } } } }; void webMain() {} `.trim(); const html_code = ` `.trim(); const js_code = ``.trim(); const flags = ` -cheerp-pretty-code -cheerp-no-type-optimizer -cheerp-no-native-math -cheerp-no-math-imul -cheerp-no-math-fround -O3 -target cheerp`.trim() const wasm_code = ''; export const perf_example = { cpp: cpp_code, js: js_code, wasm: wasm_code, html: html_code, flags: flags }