measure-compilation ( word/quot -- metrics )


Vocabulary
compiler.cfg.metrics

Inputs
word/quotan object


Outputs
metricsan object


Definition


:: measure-compilation ( word/quot -- metrics )
[
[ word/quot test-builder ] benchmark :> ( cfgs ns ) cfgs
[ measure-cfg ] map
:> procedures word/quot unparse :> input
current-register-allocator unparse :> allocator H{
{ "input" input }
{ "procedures" procedures }
{ "allocator" allocator }
{ "frontend-nanoseconds" ns }
}
] with-scope ;