diff options
author | Arne H Juul <arnej27959@users.noreply.github.com> | 2020-10-26 13:13:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-26 13:13:50 +0100 |
commit | 6e23dcf00c5307a157881be88548363d21c58b38 (patch) | |
tree | 3c4a21ad5fbaf076a53cf15ff6e06bc69888f9ea | |
parent | 33d1633018a8ea5bb2998281c8490f099de3ac19 (diff) | |
parent | cba99e8575660ad9f8dba418b716aca335544647 (diff) |
Merge pull request #15029 from vespa-engine/arnej/duplicate-instruction-benchmark
partial duplicate of micro-bemchmark
-rw-r--r-- | eval/src/tests/tensor/instruction_benchmark/instruction_benchmark.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/eval/src/tests/tensor/instruction_benchmark/instruction_benchmark.cpp b/eval/src/tests/tensor/instruction_benchmark/instruction_benchmark.cpp index 0299dc3ebba..7182d66f8aa 100644 --- a/eval/src/tests/tensor/instruction_benchmark/instruction_benchmark.cpp +++ b/eval/src/tests/tensor/instruction_benchmark/instruction_benchmark.cpp @@ -36,7 +36,6 @@ #include <vespa/eval/eval/tensor_function.h> #include <vespa/eval/tensor/default_tensor_engine.h> #include <vespa/eval/tensor/default_value_builder_factory.h> -#include <vespa/eval/tensor/mixed/packed_mixed_tensor_builder_factory.h> #include <vespa/vespalib/util/benchmark_timer.h> #include <vespa/vespalib/util/stringfmt.h> #include <vespa/vespalib/objects/nbostream.h> @@ -230,7 +229,6 @@ Impl default_tensor_engine_impl(1, "DefaultTensorEngine", "OLD PROD", DefaultTe Impl simple_value_impl(3, " SimpleValue", " SimpleV", SimpleValueBuilderFactory::get(), false); Impl fast_value_impl(0, " FastValue", "NEW PROD", FastValueBuilderFactory::get(), false); Impl optimized_fast_value_impl(2, "Optimized FastValue", "Optimize", FastValueBuilderFactory::get(), true); -Impl packed_mixed_tensor_impl(5, " PackedMixedTensor", " Packed", PackedMixedTensorBuilderFactory::get(), false); Impl default_tensor_value_impl(4, " DefaultValue", "DefaultV", DefaultValueBuilderFactory::get(), false); vespalib::string short_header("--------"); @@ -243,7 +241,6 @@ std::vector<CREF<Impl>> impl_list = {default_tensor_engine_impl, simple_value_impl, fast_value_impl, optimized_fast_value_impl, - packed_mixed_tensor_impl, default_tensor_value_impl}; //----------------------------------------------------------------------------- @@ -982,6 +979,14 @@ void print_summary() { } int main(int argc, char **argv) { + const std::string run_only_prod_option = "--limit-implementations"; + if ((argc > 1) && (argv[1] == run_only_prod_option )) { + impl_list.clear(); + impl_list.push_back(fast_value_impl); + impl_list.push_back(default_tensor_engine_impl); + ++argv; + --argc; + } ::testing::InitGoogleTest(&argc, argv); int result = RUN_ALL_TESTS(); print_summary(); |