This directory contains tests and benchmarks of type relations, for example, isSubtypeOf.
To collect new data for a benchmark, follow these steps:
Identify the program that the benchmark is based on, for example, pkg/compiler/bin/dart2js.dart
.
Modify pkg/kernel/lib/type_environment.dart
as described in the method SubtypeTester._collect_isSubtypeOf
.
Compile the program using Fasta, for example:
./sdk/bin/dart pkg/front_end/tool/_fasta/compile.dart pkg/compiler/bin/dart2js.dart
This produces a file named type_checks.json
in the current directory.
Compress the file using gzip
.