i test performance for android il2cpp with this code:
int TestPerformance()
{
var keys = myDic.Keys;
int total = 0;
foreach (var key in keys)
{
var valStr = myDic [key];
total += valStr.Length;
}
return total;
}
the myDic size is 10,000, type is Dictionary<string, string>
the time cost of the iL2CPP version is about 21MS
the time cost of the mono version is about only 8MS