byte[] classData = new Javac(CompilerTest.class.getClassLoader()).compile(code);
long compilationTime = System.currentTimeMillis();
Runnable runnable = new BytecodeGenerator().instantiate(classData, Runnable.class);
long loadingTime = System.currentTimeMillis();
long endMemory = Runtime.getRuntime().freeMemory();
runnable.run();