blob: 54914bfa00cbbeba1c15b710f0647f053c10a8e7 [file] [log] [blame]
// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library protoc.benchmark.suite.json;
import '../benchmarks/get_strings.dart';
import '../benchmarks/set_strings.dart';
import '../benchmarks/has_strings.dart';
import '../generated/benchmark.pb.dart' show Suite;
final Suite propsSuite = () {
var suite = new Suite();
suite.requests.addAll([
_getStrings(10, null),
_getStrings(10, "x"),
_setStrings(10, null),
_setStrings(10, "x"),
_hasStrings(10, null),
_hasStrings(10, "x"),
]);
return suite;
}();
_getStrings(int height, String fill) =>
new GetStringsBenchmark(height, fill).makeRequest();
_setStrings(int height, String fill) =>
new SetStringsBenchmark(height, fill).makeRequest();
_hasStrings(int height, String fill) =>
new HasStringsBenchmark(height, fill).makeRequest();