summaryrefslogtreecommitdiff
path: root/compiler/optimizing
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2021-11-12 12:45:23 +0000
committer Vladimir Marko <vmarko@google.com> 2021-11-15 09:53:15 +0000
commit483c41a99b8f0b63cbdcac9f1cd1f2dcb5756b0c (patch)
tree0607ab807d82679a1097a24461a955909ba61dfe /compiler/optimizing
parent9575c124c3d77e9f07e8c101571776ac9270af83 (diff)
ART: Use core image to speed up some gtests.
Host timing of art_compiler_tests --no_isolate --gtest_filter='<pattern>' for different patterns: "ms total" before after LoadStoreEliminationTest* 16945 4750 LoadStoreAnalysisTest* 2647 689 ReferenceTypePropagationTest* 13542 3929 InstructionSimplifierTest* 1452 406 Host timing of art_runtime_tests --no_isolate --gtest_filter='<pattern>' for different patterns: "ms total" before after RegType*Test* 2976 1675 DexCacheTest* 265 74 JavaVmExtTest* 785 230 Host timing of art_libartbase_tests --no_isolate --gtest_filter='<pattern>' for different patterns: "ms total" before after FlagsTests* 691 214 Host timing of art_dex2oat_tests --no_isolate --gtest_filter='<pattern>' for different patterns: "ms total" before after VerifierDepsTest* 3567 874 Test: m test-art-host-gtest Change-Id: I20df90e3d38aaa286e22ba070c7845bcb09e3bca
Diffstat (limited to 'compiler/optimizing')
-rw-r--r--compiler/optimizing/instruction_simplifier_test.cc4
-rw-r--r--compiler/optimizing/load_store_analysis_test.cc4
-rw-r--r--compiler/optimizing/load_store_elimination_test.cc4
-rw-r--r--compiler/optimizing/reference_type_propagation_test.cc4
4 files changed, 14 insertions, 2 deletions
diff --git a/compiler/optimizing/instruction_simplifier_test.cc b/compiler/optimizing/instruction_simplifier_test.cc
index 2063eedb28..c7c5b12e25 100644
--- a/compiler/optimizing/instruction_simplifier_test.cc
+++ b/compiler/optimizing/instruction_simplifier_test.cc
@@ -36,6 +36,10 @@ class Throwable;
template<typename SuperClass>
class InstructionSimplifierTestBase : public SuperClass, public OptimizingUnitTestHelper {
public:
+ InstructionSimplifierTestBase() {
+ this->use_boot_image_ = true; // Make the Runtime creation cheaper.
+ }
+
void SetUp() override {
SuperClass::SetUp();
gLogVerbosity.compiler = true;
diff --git a/compiler/optimizing/load_store_analysis_test.cc b/compiler/optimizing/load_store_analysis_test.cc
index c6d22087f7..3c26c8d6ce 100644
--- a/compiler/optimizing/load_store_analysis_test.cc
+++ b/compiler/optimizing/load_store_analysis_test.cc
@@ -40,7 +40,9 @@ namespace art {
class LoadStoreAnalysisTest : public CommonCompilerTest, public OptimizingUnitTestHelper {
public:
- LoadStoreAnalysisTest() {}
+ LoadStoreAnalysisTest() {
+ use_boot_image_ = true; // Make the Runtime creation cheaper.
+ }
AdjacencyListGraph SetupFromAdjacencyList(
const std::string_view entry_name,
diff --git a/compiler/optimizing/load_store_elimination_test.cc b/compiler/optimizing/load_store_elimination_test.cc
index 812a32aeec..7d68c9fe11 100644
--- a/compiler/optimizing/load_store_elimination_test.cc
+++ b/compiler/optimizing/load_store_elimination_test.cc
@@ -48,6 +48,10 @@ namespace art {
template <typename SuperTest>
class LoadStoreEliminationTestBase : public SuperTest, public OptimizingUnitTestHelper {
public:
+ LoadStoreEliminationTestBase() {
+ this->use_boot_image_ = true; // Make the Runtime creation cheaper.
+ }
+
void SetUp() override {
SuperTest::SetUp();
gLogVerbosity.compiler = true;
diff --git a/compiler/optimizing/reference_type_propagation_test.cc b/compiler/optimizing/reference_type_propagation_test.cc
index d90567ae7e..d1bcab083c 100644
--- a/compiler/optimizing/reference_type_propagation_test.cc
+++ b/compiler/optimizing/reference_type_propagation_test.cc
@@ -39,7 +39,9 @@ constexpr bool kUseTrueRandomness = false;
template<typename SuperTest>
class ReferenceTypePropagationTestBase : public SuperTest, public OptimizingUnitTestHelper {
public:
- ReferenceTypePropagationTestBase() : graph_(nullptr), propagation_(nullptr) { }
+ ReferenceTypePropagationTestBase() : graph_(nullptr), propagation_(nullptr) {
+ this->use_boot_image_ = true; // Make the Runtime creation cheaper.
+ }
~ReferenceTypePropagationTestBase() { }