Is the speed difference the same (or nearly same) every time you run those 2 executables? If yes then there can be 3 culprits - LoadResources, Writeln and Format.