mirror of
https://github.com/dart-lang/sdk
synced 2024-10-02 23:49:17 +00:00
[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:
parent
873bd241dd
commit
8ac3b6ecfa
2
DEPS
2
DEPS
|
@ -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
|
||||
|
|
|
@ -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>{
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue