We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22e41db commit 30972deCopy full SHA for 30972de
test/wasm_vm_test.cc
@@ -63,8 +63,16 @@ TEST_P(TestVm, Init) {
63
std::cout << "\"cold\" engine time: " << cold << "ns" << std::endl;
64
std::cout << "\"warm\" engine time: " << warm << "ns" << std::endl;
65
66
+ // Default warm time in nanoseconds.
67
+ int warm_time_ns_limit = 10000;
68
+
69
+#if defined(__linux__) && defined(__s390x__)
70
+ // Linux 390x is significantly slower, so we use a more lenient limit.
71
+ warm_time_ns_limit = 75000;
72
+#endif
73
74
// Verify that getting a "warm" engine takes less than 10us.
- EXPECT_LE(warm, 10000);
75
+ EXPECT_LE(warm, warm_time_ns_limit);
76
77
// Verify that getting a "warm" engine takes at least 50x less time than getting a "cold" one.
78
EXPECT_LE(warm * 50, cold);
0 commit comments