The release of the JIT compiler takes the performance of batch files to a new level. Of course, the performance gain depends on the complexity of the script - the more cycles and subroutines used, the greater will be the advantage. Let's try to evaluate the performance using a script that displays 100 frames of 3D pseudographics. The source code of the script can be found here.Test platform:
First, let's load the script in the IDE, select the compilation mode (Console, JIT) and the target architecture x86. We see no point in choosing competing compilers, since they all use the standard Windows interpreter. Based on this, the result of the compilation will be compared with the 32-bit version of the command line interpreter. (C:\Windows\SysWOW64\cmd.exe)
The result is impressive, isn't it? Compiled EXE file runs 2.54 times faster than original BAT file.
Now, choose the target x64 architecture and compare compilation result with the 64-bit version of the command line interpreter (C:\Windows\System32\cmd.exe)
And again, the advantage is hundreds of percent. The compiled file runs 2.35 times faster than the original.
The JIT compiler was first introduced in Quick Batch File Compiler 5.0 and it was this version that participated in the testing. In all compilation modes the compiler shows a drastic increase in performance. We expect further performance improvements in future versions of the compiler. We will update the results on this page as new versions are released.