Unicode string Len and Mid procedures using SSE2

Share your advanced PureBasic knowledge/code with the community.
TomyB
User
User
Posts: 18
Joined: Sun Feb 26, 2012 5:18 pm

Re: Unicode string Len and Mid procedures using SSE2

Post 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)
User avatar
Tenaja
Addict
Addict
Posts: 1959
Joined: Tue Nov 09, 2010 10:15 pm

Re: Unicode string Len and Mid procedures using SSE2

Post 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.
wilbert
PureBasic Expert
PureBasic Expert
Posts: 3942
Joined: Sun Aug 08, 2004 5:21 am
Location: Netherlands

Re: Unicode string Len and Mid procedures using SSE2

Post 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
Windows (x64)
Raspberry Pi OS (Arm64)
Post Reply