jeudi 18 mars 2021

Benchmark on Create Instance with AOT

What is the performance of difference ways of Instance Creation between Mono and IL2CPP?

  1. Direct Create Instance
  2. Compile Expression, then DynamicInvoke
  3. Compile Expression<Func<object[], object>>, then cast to Func<object[], object>, then Invoke
  4. Compile Expression, the cast to Func then Invoke directly (not suitable for parameter constructor)
  5. ConstructorInfo.Invoke
  6. cached ConstructorInfo, then Invoke
  7. Activator.CreateInstance




Aucun commentaire:

Enregistrer un commentaire