Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(413)

Side by Side Diff: utils/tests/string_encoding/utf8_benchmarks.dart

Issue 46673003: Remove uses of Options from utils directory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/env dart 1 #!/usr/bin/env dart
2 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3 // for details. All rights reserved. Use of this source code is governed by a 3 // for details. All rights reserved. Use of this source code is governed by a
4 // BSD-style license that can be found in the LICENSE file. 4 // BSD-style license that can be found in the LICENSE file.
5 5
6 library BenchmarkTests; 6 library BenchmarkTests;
7 import 'dart:io'; 7 import 'dart:io';
8 import 'dart:math' as Math; 8 import 'dart:math' as Math;
9 import '../../../lib/convert/convert.dart' as SE; 9 import '../../../lib/convert/convert.dart' as SE;
10 part 'benchmark_runner.dart'; 10 part 'benchmark_runner.dart';
11 11
12 void main() { 12 void main(List<String> arguments) {
13 Runner.arguments = arguments;
13 14
14 final List<int> testEnglishUtf8 = const<int> [ 15 final List<int> testEnglishUtf8 = const<int> [
15 0x54, 0x68, 0x65, 0x20, 0x71, 0x75, 0x69, 0x63, 16 0x54, 0x68, 0x65, 0x20, 0x71, 0x75, 0x69, 0x63,
16 0x6b, 0x20, 0x62, 0x72, 0x6f, 0x77, 0x6e, 0x20, 17 0x6b, 0x20, 0x62, 0x72, 0x6f, 0x77, 0x6e, 0x20,
17 0x66, 0x6f, 0x78, 0x20, 0x6a, 0x75, 0x6d, 0x70, 18 0x66, 0x6f, 0x78, 0x20, 0x6a, 0x75, 0x6d, 0x70,
18 0x73, 0x20, 0x6f, 0x76, 0x65, 0x72, 0x20, 0x74, 19 0x73, 0x20, 0x6f, 0x76, 0x65, 0x72, 0x20, 0x74,
19 0x68, 0x65, 0x20, 0x6c, 0x61, 0x7a, 0x79, 0x20, 20 0x68, 0x65, 0x20, 0x6c, 0x61, 0x7a, 0x79, 0x20,
20 0x64, 0x6f, 0x67, 0x2e]; 21 0x64, 0x6f, 0x67, 0x2e];
21 22
22 final List<int> testDanishUtf8 = const<int>[ 23 final List<int> testDanishUtf8 = const<int>[
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 113
113 BenchmarkRunner.runTimed("SE_RU1","string_encoding/decodeUtf8-Russian1", 114 BenchmarkRunner.runTimed("SE_RU1","string_encoding/decodeUtf8-Russian1",
114 testConfig_1sec, () => SE.UTF8.decode(testRussianUtf8)); 115 testConfig_1sec, () => SE.UTF8.decode(testRussianUtf8));
115 116
116 BenchmarkRunner.runTimed("SE_EL1","string_encoding/decodeUtf8-Greek", 117 BenchmarkRunner.runTimed("SE_EL1","string_encoding/decodeUtf8-Greek",
117 testConfig_1sec, () => SE.UTF8.decode(testGreekUtf8)); 118 testConfig_1sec, () => SE.UTF8.decode(testGreekUtf8));
118 119
119 BenchmarkRunner.runTimed("SE_JA1","string_encoding/decodeUtf8-Katakana", 120 BenchmarkRunner.runTimed("SE_JA1","string_encoding/decodeUtf8-Katakana",
120 testConfig_1sec, () => SE.UTF8.decode(testKatakanaUtf8)); 121 testConfig_1sec, () => SE.UTF8.decode(testKatakanaUtf8));
121 } 122 }
OLDNEW
« no previous file with comments | « utils/tests/string_encoding/benchmark_runner.dart ('k') | utils/tests/testrunner/testrunner_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698