• Home
  • Raw
  • Download

Lines Matching refs:dataset

54   Fixture(const BenchmarkDataset& dataset, const std::string& suffix) {  in Fixture()  argument
55 for (int i = 0; i < dataset.payload_size(); i++) { in Fixture()
56 payloads_.push_back(dataset.payload(i)); in Fixture()
61 dataset.message_name()); in Fixture()
64 std::cerr << "Couldn't find message named '" << dataset.message_name() in Fixture()
69 SetName((dataset.name() + suffix).c_str()); in Fixture()
97 ParseNewFixture(const BenchmarkDataset& dataset) in ParseNewFixture() argument
98 : Fixture(dataset, "_parse_new") {} in ParseNewFixture()
118 ParseNewArenaFixture(const BenchmarkDataset& dataset) in ParseNewArenaFixture() argument
119 : Fixture(dataset, "_parse_newarena") {} in ParseNewArenaFixture()
141 ParseReuseFixture(const BenchmarkDataset& dataset) in ParseReuseFixture() argument
142 : Fixture(dataset, "_parse_reuse") {} in ParseReuseFixture()
162 SerializeFixture(const BenchmarkDataset& dataset) in SerializeFixture() argument
163 : Fixture(dataset, "_serialize") { in SerializeFixture()
205 void RegisterBenchmarksForType(const BenchmarkDataset& dataset) { in RegisterBenchmarksForType() argument
207 new ParseNewFixture<T>(dataset)); in RegisterBenchmarksForType()
209 new ParseReuseFixture<T>(dataset)); in RegisterBenchmarksForType()
211 new ParseNewArenaFixture<T>(dataset)); in RegisterBenchmarksForType()
213 new SerializeFixture<T>(dataset)); in RegisterBenchmarksForType()
217 BenchmarkDataset dataset; in RegisterBenchmarks() local
218 GOOGLE_CHECK(dataset.ParseFromString(dataset_bytes)); in RegisterBenchmarks()
220 if (dataset.message_name() == "benchmarks.proto3.GoogleMessage1") { in RegisterBenchmarks()
221 RegisterBenchmarksForType<benchmarks::proto3::GoogleMessage1>(dataset); in RegisterBenchmarks()
222 } else if (dataset.message_name() == "benchmarks.proto2.GoogleMessage1") { in RegisterBenchmarks()
223 RegisterBenchmarksForType<benchmarks::proto2::GoogleMessage1>(dataset); in RegisterBenchmarks()
224 } else if (dataset.message_name() == "benchmarks.proto2.GoogleMessage2") { in RegisterBenchmarks()
225 RegisterBenchmarksForType<benchmarks::proto2::GoogleMessage2>(dataset); in RegisterBenchmarks()
226 } else if (dataset.message_name() == in RegisterBenchmarks()
229 <benchmarks::google_message3::GoogleMessage3>(dataset); in RegisterBenchmarks()
230 } else if (dataset.message_name() == in RegisterBenchmarks()
233 <benchmarks::google_message4::GoogleMessage4>(dataset); in RegisterBenchmarks()
235 std::cerr << "Unknown message type: " << dataset.message_name(); in RegisterBenchmarks()