# IDE compiled program performance

**URL:** <https://forum.xojo.com/t/ide-compiled-program-performance/8776>\
**Category:** Getting Started\
**Created:** [June 11, 2013, 4:47pm UTC](https://forum.xojo.com/t/ide-compiled-program-performance/8776 "2013-06-11T16:47:54Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Piero\_Ugliengo](https://forum.xojo.com/letter_avatar_proxy/v4/letter/p/ec9cab/32.png) [@Piero\_Ugliengo](https://forum.xojo.com/u/Piero_Ugliengo)\
**Post date:** [June 11, 2013, 4:47pm UTC](https://forum.xojo.com/t/ide-compiled-program-performance/8776/1 "2013-06-11T16:47:54Z")

</div>

Does an IDE compiled program perform as fast as the corresponding exe file obtained with a xojo full license?  
I’m referring particularly to number crunching performance.  
Thanks a lot.

---

<div class="post-metadata">

**Author:** ![DaveS](https://forum.xojo.com/letter_avatar_proxy/v4/letter/d/848f3c/32.png) [@DaveS](https://forum.xojo.com/u/DaveS)\
**Post date:** [June 11, 2013, 4:56pm UTC](https://forum.xojo.com/t/ide-compiled-program-performance/8776/2 "2013-06-11T16:56:52Z")

</div>

The compiled program will most likely perform quicker than running in the IDE

In the IDE there is other over-head involved

---

<div class="post-metadata">

**Author:** ![Norman\_P](https://forum.xojo.com/letter_avatar_proxy/v4/letter/n/858c86/32.png) [@Norman\_P](https://forum.xojo.com/u/Norman_P)\
**Post date:** [June 11, 2013, 4:56pm UTC](https://forum.xojo.com/t/ide-compiled-program-performance/8776/3 "2013-06-11T16:56:58Z")

</div>

Actually a compiled app with probably run faster than one in the debugger since it has no debugging informations or the ability to talk to the IDE

---

<div class="post-metadata">

**Author:** ![Piero\_Ugliengo](https://forum.xojo.com/letter_avatar_proxy/v4/letter/p/ec9cab/32.png) [@Piero\_Ugliengo](https://forum.xojo.com/u/Piero_Ugliengo)\
**Post date:** [June 11, 2013, 5:01pm UTC](https://forum.xojo.com/t/ide-compiled-program-performance/8776/4 "2013-06-11T17:01:56Z")

</div>

Thanks a lot! Is it possible to quantify how much faster? I’m asking as I was rather disappointed to find that a simple matrix diagonalization ported from VB6 took about twice as much on the xojo IDE to complete than on the old VB6 IDE. Useless to say that the code was exactly the same for VB6 and xojo as far as data types, loop counts and alike.

---

<div class="post-metadata">

**Author:** ![DaveS](https://forum.xojo.com/letter_avatar_proxy/v4/letter/d/848f3c/32.png) [@DaveS](https://forum.xojo.com/u/DaveS)\
**Post date:** [June 11, 2013, 5:05pm UTC](https://forum.xojo.com/t/ide-compiled-program-performance/8776/5 "2013-06-11T17:05:20Z")

</div>

Not really… I would think that graphics programs would show the most variance (although my programs run “acceptable” in the IDE, and really well compiled)…

Turning off some of the error checking in the IDE might help you some.

If you want (assuming no “secrets”) you can send me the project, and I will quantify it on my machine to give you an idea

---

<div class="post-metadata">

**Author:** ![Piero\_Ugliengo](https://forum.xojo.com/letter_avatar_proxy/v4/letter/p/ec9cab/32.png) [@Piero\_Ugliengo](https://forum.xojo.com/u/Piero_Ugliengo)\
**Post date:** [June 11, 2013, 5:08pm UTC](https://forum.xojo.com/t/ide-compiled-program-performance/8776/6 "2013-06-11T17:08:35Z")

</div>

Dave that would be very nice of you. No secrets at all. Let me prepare the code and I will post you a link to download the project. Cheers

---

<div class="post-metadata">

**Author:** ![DaveS](https://forum.xojo.com/letter_avatar_proxy/v4/letter/d/848f3c/32.png) [@DaveS](https://forum.xojo.com/u/DaveS)\
**Post date:** [June 11, 2013, 5:15pm UTC](https://forum.xojo.com/t/ide-compiled-program-performance/8776/7 "2013-06-11T17:15:26Z")

</div>

plus any instructions required to perform the test for you.

---

<div class="post-metadata">

**Author:** ![Travis\_Hill](https://forum.xojo.com/user_avatar/forum.xojo.com/travis_hill/32/3_2.png) [@Travis\_Hill](https://forum.xojo.com/u/Travis_Hill)\
**Post date:** [June 11, 2013, 5:18pm UTC](https://forum.xojo.com/t/ide-compiled-program-performance/8776/8 "2013-06-11T17:18:56Z")

</div>

If it’s a relatively small project, I can also take a quick look to see if there are some other optimizations to help with execution speed…

---

<div class="post-metadata">

**Author:** ![William\_James](https://forum.xojo.com/user_avatar/forum.xojo.com/william_james/32/546_2.png) [@William\_James](https://forum.xojo.com/u/William_James)\
**Post date:** [June 11, 2013, 5:26pm UTC](https://forum.xojo.com/t/ide-compiled-program-performance/8776/9 "2013-06-11T17:26:19Z")

</div>

I’m presently developing an arbitrary precision math module in pure Xojo code and it does some serious number crunching. Depending on what I am doing, I can see performance difference in the 2-5x range from the IDE to compiled. When LLVM becomes available this difference could be made huge (i.e. multiply it again by up to 10x).

---

<div class="post-metadata">

**Author:** ![Piero\_Ugliengo](https://forum.xojo.com/letter_avatar_proxy/v4/letter/p/ec9cab/32.png) [@Piero\_Ugliengo](https://forum.xojo.com/u/Piero_Ugliengo)\
**Post date:** [June 11, 2013, 6:12pm UTC](https://forum.xojo.com/t/ide-compiled-program-performance/8776/10 "2013-06-11T18:12:51Z")

</div>

I posted here a link to the code:

[https://dl.dropboxusercontent.com/u/2287430/eigen.xojo\_binary\_project](https://dl.dropboxusercontent.com/u/2287430/eigen.xojo_binary_project)

It is super easy: run, click on start so that the size of the matrix is displayed, click ok, wait until a MsgBox will tell you the seconds spent to diagonalize the matrix. That’s all. On my jurassick Centrino Win7(64 bits) it takes 6.5 s to diagonalize a 100x100 matrix. On more modern PC you may want to increase the size of the matrix up to 200 (please keep in mind that the computer time grows as n^3) to get significant amount of time. It would be very nice to see the IDE and full exe times on different architectures.  
Thanks to all of you for the help

---

<div class="post-metadata">

**Author:** ![DaveS](https://forum.xojo.com/letter_avatar_proxy/v4/letter/d/848f3c/32.png) [@DaveS](https://forum.xojo.com/u/DaveS)\
**Post date:** [June 11, 2013, 6:19pm UTC](https://forum.xojo.com/t/ide-compiled-program-performance/8776/11 "2013-06-11T18:19:26Z")

</div>

on my iMac i7 under the IDE a 100x100 Matrix took 5.365452 seconds  
once compiled it took 2.894418 seconds (almost 2x as fast)

did notice the time flucuates +/- a few tenths on each run

---

<div class="post-metadata">

**Author:** ![Piero\_Ugliengo](https://forum.xojo.com/letter_avatar_proxy/v4/letter/p/ec9cab/32.png) [@Piero\_Ugliengo](https://forum.xojo.com/u/Piero_Ugliengo)\
**Post date:** [June 11, 2013, 6:22pm UTC](https://forum.xojo.com/t/ide-compiled-program-performance/8776/12 "2013-06-11T18:22:45Z")

</div>

Dave, I did expect a much better improvement compared to my T8300 CPU… Anyhow the scaling is clear

---

<div class="post-metadata">

**Author:** ![DaveS](https://forum.xojo.com/letter_avatar_proxy/v4/letter/d/848f3c/32.png) [@DaveS](https://forum.xojo.com/u/DaveS)\
**Post date:** [June 11, 2013, 6:22pm UTC](https://forum.xojo.com/t/ide-compiled-program-performance/8776/13 "2013-06-11T18:22:55Z")

</div>

200x200 took 14.575 and 7.788995

---

<div class="post-metadata">

**Author:** ![Piero\_Ugliengo](https://forum.xojo.com/letter_avatar_proxy/v4/letter/p/ec9cab/32.png) [@Piero\_Ugliengo](https://forum.xojo.com/u/Piero_Ugliengo)\
**Post date:** [June 11, 2013, 6:25pm UTC](https://forum.xojo.com/t/ide-compiled-program-performance/8776/14 "2013-06-11T18:25:20Z")

</div>

200x200 took 44.5 s on my PC

---

<div class="post-metadata">

**Author:** ![Carl\_Clarke](https://forum.xojo.com/letter_avatar_proxy/v4/letter/c/3bc359/32.png) [@Carl\_Clarke](https://forum.xojo.com/u/Carl_Clarke)\
**Post date:** [June 11, 2013, 6:26pm UTC](https://forum.xojo.com/t/ide-compiled-program-performance/8776/15 "2013-06-11T18:26:33Z")

</div>

I am just about to go out for the night but was curious myself. Windows 8 top end (non-Jurassic) system:

IDE 3.62166s  
Compiled: 2.128562

Only one timing run of each.

HTH

---

<div class="post-metadata">

**Author:** ![Carl\_Clarke](https://forum.xojo.com/letter_avatar_proxy/v4/letter/c/3bc359/32.png) [@Carl\_Clarke](https://forum.xojo.com/u/Carl_Clarke)\
**Post date:** [June 11, 2013, 6:29pm UTC](https://forum.xojo.com/t/ide-compiled-program-performance/8776/16 "2013-06-11T18:29:11Z")

</div>

Oh and 200x200:

IDE 11.7581  
Compiled: 8.032907

---

<div class="post-metadata">

**Author:** ![Geoff\_Perlman](https://forum.xojo.com/user_avatar/forum.xojo.com/geoff_perlman/32/48_2.png) [@Geoff\_Perlman](https://forum.xojo.com/u/Geoff_Perlman)\
**Post date:** [June 11, 2013, 6:29pm UTC](https://forum.xojo.com/t/ide-compiled-program-performance/8776/17 "2013-06-11T18:29:12Z")

</div>

@Piero Ugliengo we are in the process of switching our compiler to LLVM which is an optimizing compiler. That would make a significant improvement in performance. You can see the difference if you try out your code using XojoScript as it has an option to turn on LLVM.

---

<div class="post-metadata">

**Author:** ![DaveS](https://forum.xojo.com/letter_avatar_proxy/v4/letter/d/848f3c/32.png) [@DaveS](https://forum.xojo.com/u/DaveS)\
**Post date:** [June 11, 2013, 6:31pm UTC](https://forum.xojo.com/t/ide-compiled-program-performance/8776/18 "2013-06-11T18:31:06Z")

</div>

it is interesting that under OSX there seems to be a 2x improvement from IDE to compiled…  
but under Win8 the improvement is like only 80%

---

<div class="post-metadata">

**Author:** ![Piero\_Ugliengo](https://forum.xojo.com/letter_avatar_proxy/v4/letter/p/ec9cab/32.png) [@Piero\_Ugliengo](https://forum.xojo.com/u/Piero_Ugliengo)\
**Post date:** [June 11, 2013, 6:31pm UTC](https://forum.xojo.com/t/ide-compiled-program-performance/8776/19 "2013-06-11T18:31:26Z")

</div>

Thanks Geoff, good to know. Unfortunately I’m too novice to xojo to do what you suggest…sorry  
By the way, is the switching planned soon?

---

<div class="post-metadata">

**Author:** ![Mike\_D](https://forum.xojo.com/user_avatar/forum.xojo.com/mike_d/32/266_2.png) [@Mike\_D](https://forum.xojo.com/u/Mike_D)\
**Post date:** [June 11, 2013, 11:02pm UTC](https://forum.xojo.com/t/ide-compiled-program-performance/8776/20 "2013-06-11T23:02:42Z")

</div>

15" Retina Macbook Pro with 2.3 GHz Core i7: Matrix size: 200x200 : 17.03 in IDE, 10.1 in compiled app.

[Next page](https://forum.xojo.com/t/ide-compiled-program-performance/8776.md?page=2)
