[Vala] Why Vala is slower than Mono?

2012-06-02 Thread pinggi
I read that Vala is fast because it is translated to C and then compiled to the machine code. I have been encouraged to find out how much Vala is faster than Mono. So I made a speed test. The test program creates an array 100 000 000 integers long and then it fills the array with numbers

Re: [Vala] Why Vala is slower than Mono?

2012-06-02 Thread Jürg Billeter
On Sat, 2012-06-02 at 15:47 +0200, pin...@centrum.cz wrote: Compiled by: dmcs Main.cs Run by: ./Main.exe Output: Took: creating: 0.388, processing: 0.212 [...] Compiled by: valac main.vala -X -O2 Run by: ./main Output: Took: creating: 0.34, processing: 0.455629 [...]

Re: [Vala] Why Vala is slower than Mono?

2012-06-02 Thread Simon Werbeck
Am Samstag, den 02.06.2012, 15:47 +0200 schrieb pin...@centrum.cz: I read that Vala is fast because it is translated to C and then compiled to the machine code. I have been encouraged to find out how much Vala is faster than Mono. So I made a speed test. The test program creates an array