namespace Benchmark { using System; class OpCodes { public static object v_add_10 = new object(); public static object v_mul_2 = new object(); public static object v_sub_3 = new object(); } class Benchmark { private static Random random = new Random(); private static object randomOpcode() { int n = random.Next(3); if (n==0) return OpCodes.v_add_10; else if (n==1) return OpCodes.v_mul_2; else return OpCodes.v_sub_3; } private static object[] randomBytecode(int N) { object[] bytecode = new object[N]; for(int i=0; i