[benchmark] Fix dart2 files importing dart files.

Change-Id: Iaac8b219b76ff615f45c4d6e1fedc8d8b58ca90c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149845
Reviewed-by: Alexander Thomas <athom@google.com>
This commit is contained in:
Jonas Termansen 2020-06-03 14:04:16 +00:00
parent 873bd241dd
commit 8ac3b6ecfa
4 changed files with 4 additions and 4 deletions

2
DEPS
View file

@ -48,7 +48,7 @@ vars = {
"co19_2_rev": "620c1148c8b7a3d7f74afacf348c46f109eb64f2",
# The internal benchmarks to use. See go/dart-benchmarks-internal
"benchmarks_internal_rev": "e15385120f9410a916e202b794f023639813e9bf",
"benchmarks_internal_rev": "4f5285d3711ed4225d0bf5673379e7afdc6cb8e5",
"checkout_benchmarks_internal": False,
# As Flutter does, we use Fuchsia's GN and Clang toolchain. These revision

View file

@ -115,7 +115,7 @@ class BenchmarkConfig {
Future<void> main() async {
final jsonString =
File('benchmarks/IsolateJson/dart/sample.json').readAsStringSync();
File('benchmarks/IsolateJson2/dart/sample.json').readAsStringSync();
final json250KB = utf8.encode(jsonString); // 294356 bytes
final decoded = json.decode(utf8.decode(json250KB));
final decoded1MB = <dynamic, dynamic>{

View file

@ -147,7 +147,7 @@ Future<void> isolateCompiler(StartMessageLatency start) async {
final DateTime timeRunningCodeUs = DateTime.now();
await runZoned(
() => dart2js_main.internalMain(<String>[
"benchmarks/IsolateSpawn/dart/helloworld.dart",
"benchmarks/IsolateSpawn/dart2/helloworld.dart",
'--libraries-spec=sdk/lib/libraries.json'
]),
zoneSpecification: ZoneSpecification(

View file

@ -117,7 +117,7 @@ Future<void> isolateCompiler(StartMessage startMessage) async {
await runZoned(
() => dart2js_main.internalMain(<String>[
"benchmarks/IsolateSpawnMemory/dart/helloworld.dart",
"benchmarks/IsolateSpawnMemory/dart2/helloworld.dart",
'--libraries-spec=sdk/lib/libraries.json'
]),
zoneSpecification: ZoneSpecification(