blob: 9b092f51397847bf089db7009a2cbbb66b9b3ca3 [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.
import '../benchmarks/get_strings.dart';
import '../benchmarks/has_strings.dart';
import '../benchmarks/set_strings.dart';
import '../generated/benchmark.pb.dart' show Suite;
final Suite propsSuite = () {
var suite = 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) =>
GetStringsBenchmark(height, fill).makeRequest();
_setStrings(int height, String fill) =>
SetStringsBenchmark(height, fill).makeRequest();
_hasStrings(int height, String fill) =>
HasStringsBenchmark(height, fill).makeRequest();