From 89fa401bba5a66cd871354a613f7525424bfa80e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bylica?= Date: Thu, 21 Dec 2023 21:30:47 +0100 Subject: [PATCH] statetest: Disable sync with stdio when tracing (#757) This increase the tracing performance. More info in the C++ spec: https://en.cppreference.com/w/cpp/io/ios_base/sync_with_stdio --- test/statetest/statetest.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/statetest/statetest.cpp b/test/statetest/statetest.cpp index eb32b05235..3357722f69 100644 --- a/test/statetest/statetest.cpp +++ b/test/statetest/statetest.cpp @@ -94,7 +94,10 @@ int main(int argc, char* argv[]) evmc::VM vm{evmc_create_evmone(), {{"O", "0"}}}; if (trace) + { + std::ios::sync_with_stdio(false); vm.set_option("trace", "1"); + } for (const auto& p : paths) register_test_files(p, vm, trace || trace_summary);