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

Unified Diff: utils/tests/string_encoding/utf8_benchmarks.dart

Issue 48133002: Remove deprecated dart:utf library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merged to head. Created 7 years, 2 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « utils/tests/string_encoding/unicode_test.dart ('k') | utils/tests/string_encoding/utf8_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/string_encoding/utf8_benchmarks.dart
diff --git a/utils/tests/string_encoding/utf8_benchmarks.dart b/utils/tests/string_encoding/utf8_benchmarks.dart
index 7ea90ca3c85550d97d23f292828df3121280a543..dc141bb710dc56f371e5988d595ba7f93fc3c732 100755
--- a/utils/tests/string_encoding/utf8_benchmarks.dart
+++ b/utils/tests/string_encoding/utf8_benchmarks.dart
@@ -6,7 +6,7 @@
library BenchmarkTests;
import 'dart:io';
import 'dart:math' as Math;
-import '../../../lib/utf/utf.dart' as SE;
+import '../../../lib/convert/convert.dart' as SE;
part 'benchmark_runner.dart';
void main() {
@@ -102,25 +102,20 @@ void main() {
new TimedTestConfig(100, 1 * 1000, blocksize: 1000);
BenchmarkRunner.runTimed("SE_EN1","string_encoding/decodeUtf8-English1",
- testConfig_1sec, () =>
- (new SE.Utf8Decoder(testEnglishUtf8)).decodeRest());
+ testConfig_1sec, () => SE.UTF8.decode(testEnglishUtf8));
BenchmarkRunner.runTimed("SE_DA1","string_encoding/decodeUtf8-Danish1",
- testConfig_1sec, () => (new SE.Utf8Decoder(testDanishUtf8)).decodeRest());
+ testConfig_1sec, () => SE.UTF8.decode(testDanishUtf8));
BenchmarkRunner.runTimed("SE_HE1","string_encoding/decodeUtf8-Hebrew1",
- testConfig_1sec, () => (new SE.Utf8Decoder(testHebrewUtf8)).decodeRest());
+ testConfig_1sec, () => SE.UTF8.decode(testHebrewUtf8));
BenchmarkRunner.runTimed("SE_RU1","string_encoding/decodeUtf8-Russian1",
- testConfig_1sec, () =>
- (new SE.Utf8Decoder(testRussianUtf8)).decodeRest());
+ testConfig_1sec, () => SE.UTF8.decode(testRussianUtf8));
BenchmarkRunner.runTimed("SE_EL1","string_encoding/decodeUtf8-Greek",
- testConfig_1sec, () =>
- (new SE.Utf8Decoder(testGreekUtf8)).decodeRest());
+ testConfig_1sec, () => SE.UTF8.decode(testGreekUtf8));
BenchmarkRunner.runTimed("SE_JA1","string_encoding/decodeUtf8-Katakana",
- testConfig_1sec, () =>
- (new SE.Utf8Decoder(testKatakanaUtf8)).decodeRest());
+ testConfig_1sec, () => SE.UTF8.decode(testKatakanaUtf8));
}
-
« no previous file with comments | « utils/tests/string_encoding/unicode_test.dart ('k') | utils/tests/string_encoding/utf8_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698