Yuri
2010-Apr-29 09:13 UTC
[LLVMdev] Why the same code is much slower in JIT compared to separate executable?
Török Edwin wrote:> How long does it take for llc to compile it? > Remember that the JIT includes code generation timellc takes almost no time (0.00 user as measured by time), code is tiny. Yuri
Török Edwin
2010-Apr-29 09:39 UTC
[LLVMdev] Why the same code is much slower in JIT compared to separate executable?
On 04/29/2010 12:13 PM, Yuri wrote:> Török Edwin wrote: >> How long does it take for llc to compile it? >> Remember that the JIT includes code generation time > > llc takes almost no time (0.00 user as measured by time), code is tiny. >Are you using 2.6 or 2.7, 32-bit or 64-bit? With 2.7 on x86-64 I get: lli: real 0m9.564s user 0m9.557s sys 0m0.004s a.out: real 0m12.105s user 0m12.029s sys 0m0.008s So JIT is actually faster here. With a 32-bit build, I get this with a.out: real 0m15.052s user 0m14.977s sys 0m0.004s And this with the JIT (Release-Asserts): real 0m17.963s user 0m17.581s sys 0m0.004s Best regards, --Edwin
Yuri
2010-Apr-29 17:21 UTC
[LLVMdev] Why the same code is much slower in JIT compared to separate executable?
Török Edwin wrote:> Are you using 2.6 or 2.7, 32-bit or 64-bit? >I use 2.7 on i386. lli has debug asserts enabled, but I guess this shouldn't matter for JIT code speed. jit: 11.32 real exe: 7.64 user Both have -O3 option. Speed should be the same. Yuri
Reasonably Related Threads
- [LLVMdev] Why the same code is much slower in JIT compared to separate executable?
- [LLVMdev] Why the same code is much slower in JIT compared to separate executable?
- [LLVMdev] Why the same code is much slower in JIT compared to separate executable?
- [LLVMdev] Why the same code is much slower in JIT compared to separate executable?
- [LLVMdev] Why the same code is much slower in JIT compared to separate executable?