Skip to content

Commit

Permalink
statetest: Disable sync with stdio when tracing (#757)
Browse files Browse the repository at this point in the history
This increase the tracing performance. More info in the C++ spec:
https://en.cppreference.com/w/cpp/io/ios_base/sync_with_stdio
  • Loading branch information
chfast authored Dec 21, 2023
1 parent 9b5cc58 commit 89fa401
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/statetest/statetest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 89fa401

Please sign in to comment.