Page 3 of 3

Re: Unicode string Len and Mid procedures using SSE2

Posted: Sun Aug 24, 2014 2:57 am
by TomyB
Win7 x64

PB 5.30 x64
80
Intel(R) Core(TM) i5-2450M CPU @ 2.50GHz

Unicode mid string, SSE2 vs PB

Short string : 123(SSE2) vs 105(PB)
Longer string : 103(SSE2) vs 101(PB)
Very long string : 447(SSE2) vs 2504(PB)
PB 5.30 x32
80
Intel(R) Core(TM) i5-2450M CPU @ 2.50GHz

Unicode mid string, SSE2 vs PB

Short string : 97(SSE2) vs 80(PB)
Longer string : 91(SSE2) vs 94(PB)
Very long string : 449(SSE2) vs 2498(PB)

Re: Unicode string Len and Mid procedures using SSE2

Posted: Sun Aug 24, 2014 2:33 pm
by Tenaja
TomyB wrote:Win7 x64
PB 5.30 x64 Unicode mid string, SSE2 vs PB

Short string : 123(SSE2) vs 105(PB)
Longer string : 103(SSE2) vs 101(PB)
Very long string : 447(SSE2) vs 2504(PB)
PB 5.30 x32 Unicode mid string, SSE2 vs PB

Short string : 97(SSE2) vs 80(PB)
Longer string : 91(SSE2) vs 94(PB)
Very long string : 449(SSE2) vs 2498(PB)
Looking at benchmarks posted on this forum comparing 32-bit vs 64-bit, the 32-bit is nearly always the faster one. I guess not very many people here use 64-bit values.

Re: Unicode string Len and Mid procedures using SSE2

Posted: Sun Aug 24, 2014 2:57 pm
by wilbert
Thanks for all the testing.
I started a new thread because I converted everything into a module and added some things.
http://www.purebasic.fr/english/viewtop ... 22#p451722