!7 p { S mainJava = [[print("hello!");]], transpiled, transpiled2; maximizeConsole(); O transpiler = hotwireDependent(#759); setAll(transpiler, dontLoadCachedIncludesFromVM := true, //cacheStdFunctions := false, //cacheStdClasses := false ); time "First run" { set(transpiler, +mainJava); callMain(transpiler); transpiled = (S) get(transpiler, 'mainJava); } long time1 = lastTiming(); call(transpiler, 'forgetCachedIncludes); // Now we should have cached all the snippets, but not the pre-transpiled stuff. time "Second run" { set(transpiler, +mainJava); callMain(transpiler); transpiled2 = (S) get(transpiler, 'mainJava); } long time2 = lastTiming(); print("Made " + nChars(transpiled) + ", md5: " + md5(transpiled)); if (neq(transpiled, transpiled2)) print("WARNING: RESULTS DIFFER"); print("1st run with downloads: " + time1 + " ms"); print("2nd run w/o downloads: " + time2 + " ms"); }