[Plugin] JIT compiler
#6

Ehm, okay. Two words: great work.
This really works, and can boost functions by more than 300%, in my opinion this is a must for every server, if it works bugfree, and could even be integrated in the samp server's amx loader.

Here are some benchmark results (floatrandom is pure pawn calculation, the rest contains more or less native functions)
Without JIT
Code:
Test "floatrandom1" finished: 2684ms (3725782.5/sec)
Test "IsPlayerAimingAt" finished: 3004ms (332889.5/sec)
Test "GetPlayerCameraAimVector" finished: 192ms (5208333.5/sec)
With JIT (windows version)
Code:
Test "floatrandom1" finished: 715ms (13986014.0/sec)
Test "IsPlayerAimingAt" finished: 2301ms (434593.6/sec)
Test "GetPlayerCameraAimVector" finished: 22ms (45454548.0/sec)
Hm, my server crashes on connection when using this, Ill try to spot the problem:
Code:
SA-MP Server: 0.3d

Exception At Address: 0x6C1D826E

Registers:
EAX: 0x00000001	EBX: 0x03FD35E8	ECX: 0xFC2C3F14	EDX: 0x021346B8
ESI: 0x03FA0778	EDI: 0x03ECC7DC	EBP: 0x00000000	ESP: 0x0018EAE4
EFLAGS: 0x00010202

Stack:
+0000: 0x00000008   0x00000000   0x00000004   0x00000002
+0010: 0x032E6E08   0x0327ECE8   0x00000034   0x0327ECE8
+0020: 0x08A50000   0x00000008   0xFFFFFFFF   0x0018EB2C
+0030: 0x6C1D830A   0x00043248   0x03FD35E8   0x0018EFC4
+0040: 0x00000000   0x02185EE0   0x0018EB3C   0x6C1DDC50
+0050: 0x00000034   0x0018EF98   0x0018EFA8   0x004718AE
+0060: 0x02185EE0   0x0018EF98   0x00000034   0x00470069
+0070: 0x65747449   0x6E4F5F72   0x79616C50   0x6F437265
+0080: 0x63656E6E   0x00470074   0x00000001   0x032E6CA8
+0090: 0x03FD35F0   0x00000000   0x00000000   0x00000000
+00A0: 0x00000000   0x00000000   0x00000000   0x00000000
+00B0: 0x00000000   0x00000000   0x00000000   0x00000000
+00C0: 0x00000000   0x00000000   0x00000000   0x00000000
+00D0: 0x00000000   0x04980000   0x84001800   0x5E0018D8
+00E0: 0xC86C1BFB   0x000018D8   0xFF000000   0xD5FFFFFF
+00F0: 0x00CF9452   0x00400219   0xFFFF0000   0x0000FFFF
+0100: 0x00000000   0x00000000   0x00000000   0x8B000000
+0110: 0x00100003   0x00000000   0x00400000   0xFFF00000
+0120: 0x0000FFFF   0x00000000   0x00980000   0x00000074
+0130: 0x00000001   0x03282DCC   0x033D0000   0x033DEFA8
Trying to use the crashdetect plugin right now...
Reply


Messages In This Thread
JIT compiler - by Zeex_ - 19.03.2012, 14:24
Re: JIT compiler - by Anzipane! - 19.03.2012, 14:30
Re: JIT compiler - by TheArcher - 19.03.2012, 14:46
Re: JIT compiler - by Ricop522 - 19.03.2012, 15:00
AW: JIT compiler - by asdfgh98 - 19.03.2012, 15:44
Re: JIT compiler - by Mauzen - 19.03.2012, 15:58
Re: JIT compiler - by wups - 19.03.2012, 16:10
Re: JIT compiler - by ][Noname][ - 19.03.2012, 16:16
Re: JIT compiler - by Mauzen - 19.03.2012, 16:24
Re: JIT compiler - by Rock1 - 19.03.2012, 16:27
Re: JIT compiler - by kacper55331 - 19.03.2012, 16:29
Re: JIT compiler - by Slice - 19.03.2012, 18:29
Re: JIT compiler - by CyNiC - 19.03.2012, 19:19
Re: JIT compiler - by T0pAz - 19.03.2012, 19:45
Re: JIT compiler - by new121 - 19.03.2012, 20:04
Re: JIT compiler - by T0pAz - 19.03.2012, 20:07
Re: JIT compiler - by PawnFox - 19.03.2012, 20:15
Re: JIT compiler - by playbox12 - 19.03.2012, 21:17
Re: JIT compiler - by System64 - 19.03.2012, 21:30
Re: JIT compiler - by Rock1 - 19.03.2012, 21:35
Re: JIT compiler - by Whitetiger - 19.03.2012, 22:03
Re: JIT compiler - by QuaTTrO - 20.03.2012, 06:16
Re: JIT compiler - by rbN. - 20.03.2012, 10:33
Re: JIT compiler - by Vince - 20.03.2012, 10:42
Re: JIT compiler - by Niko_boy - 20.03.2012, 11:43
Re: JIT compiler - by rbN. - 20.03.2012, 11:48
Re: JIT compiler - by Mark™ - 20.03.2012, 11:55
Re: JIT compiler - by Vince - 20.03.2012, 13:00
AW: Re: JIT compiler - by Meta - 01.04.2012, 12:16
Re: AW: Re: JIT compiler - by ][Noname][ - 03.04.2012, 05:22
Re: JIT compiler v0.3.2 - by Slice - 16.04.2012, 11:54
Re: JIT compiler v0.3.2 - by Richie© - 16.04.2012, 20:06
Re: JIT compiler v0.3.2 - by Slice - 16.04.2012, 20:16
Re: JIT compiler v0.3.2 - by Richie© - 16.04.2012, 20:22
[No subject] - by ][Noname][ - 20.04.2012, 05:30
Re: JIT compiler v0.3.2 - by Richie© - 20.04.2012, 18:04
Re: JIT compiler v0.3.2 - by steki. - 22.04.2012, 17:41
Re: JIT compiler v0.3.2 - by Slice - 22.04.2012, 18:09
Re: JIT compiler v0.3.2 - by Hanger - 02.05.2012, 19:06
Re: JIT compiler v0.3.2 - by Richie© - 04.05.2012, 18:45
Re: JIT compiler v0.3.2 - by leong124 - 06.05.2012, 07:25
Respuesta: JIT compiler v0.3.2 - by [Vector] - 06.05.2012, 07:34
Re: JIT compiler v0.3.2 - by Slice - 06.05.2012, 08:42
Re: JIT compiler v0.3.2 - by rbN. - 18.05.2012, 19:26
Re: JIT compiler v0.3.2 - by Rg-Gaming.Info - 22.05.2012, 05:19
Re: JIT compiler v0.3.2 - by Night Dreamer - 24.05.2012, 10:06
Re: JIT compiler v0.3.2 - by Uberanwar - 12.06.2012, 06:33
Re: JIT compiler v0.3.2 - by SDraw - 12.06.2012, 09:19
Re: JIT compiler v0.3.2 - by sent161 - 24.06.2012, 17:44
Respuesta: JIT compiler v0.3.2 - by Patrik356b - 25.06.2012, 02:14
Re: JIT compiler v0.3.2 - by Lordz™ - 25.10.2012, 16:18
Re: JIT compiler v0.3.2 - by Y_Less - 25.10.2012, 16:25
Re: JIT compiler v0.3.2 - by Plovix - 11.11.2012, 07:48
Re: JIT compiler v0.3.2 - by Night Dreamer - 12.11.2012, 12:33
Re: JIT compiler v0.3.2 - by Cypress - 12.11.2012, 13:08
Re: JIT compiler v0.3.2 - by TheArcher - 12.11.2012, 13:18
Re: JIT compiler v0.3.2 - by whitetigerswt - 15.12.2012, 00:20
Re: JIT compiler v0.3.2 - by KingJ - 16.12.2012, 00:48
AW: JIT compiler v0.3.2 - by [DFE]Ike - 09.01.2013, 20:22
Re: JIT compiler v1.2.5 - by andyandyy8 - 04.02.2014, 15:21
Re: JIT compiler v1.2.5 - by xeeZ - 04.02.2014, 16:23
Re: JIT compiler v1.2.5 - by Reboma - 05.02.2014, 08:09
Re: JIT compiler v1.2.5 - by xeeZ - 05.02.2014, 12:49
Re: JIT compiler v1.2.5 - by xeeZ - 01.09.2014, 22:59
Respuesta: JIT compiler v1.2.5 - by oOFotherOo - 01.09.2014, 23:57
Re: JIT compiler v1.2.5 - by paulommu - 02.09.2014, 00:24
Re: JIT compiler v1.2.5 - by xeeZ - 02.09.2014, 05:36
Re: JIT compiler v1.2.5 - by uZ1 - 02.09.2014, 19:10
Re: JIT compiler v1.2.5 - by xeeZ - 02.09.2014, 19:37
Re: JIT compiler v1.2.5 - by ProjectMan - 03.09.2014, 01:32
Re: JIT compiler v1.2.5 - by xeeZ - 03.09.2014, 05:23
Re: JIT compiler v1.2.5 - by xeeZ - 28.03.2015, 17:58
Re: JIT compiler v2.0.3 - by kaZax - 31.03.2015, 16:23
Re: JIT compiler v2.0.3 - by xeeZ - 31.03.2015, 17:43
Re: JIT compiler v2.0.3 - by kaZax - 01.04.2015, 05:26
Re: JIT compiler v2.0.3 - by xeeZ - 01.04.2015, 06:02
Re: JIT compiler v2.0.3 - by kaZax - 01.04.2015, 06:55
Re: JIT compiler v2.0.3 - by xeeZ - 01.04.2015, 07:29
Re: JIT compiler v2.0.3 - by kaZax - 01.04.2015, 07:46
Re: JIT compiler - by RaeF - 21.02.2016, 02:54
Re: JIT compiler - by Lasha - 19.07.2017, 10:47
Respuesta: JIT compiler - by JuanUgalde - 18.08.2017, 21:48
Re: Respuesta: JIT compiler - by Spmn - 19.08.2017, 14:51
Re: JIT compiler - by ByMatt20030 - 06.09.2017, 16:52
Re: JIT compiler - by Mauzen - 06.09.2017, 17:08

Forum Jump:


Users browsing this thread: 1 Guest(s)