News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

fsqrt vs rsqrtss

Started by jj2007, December 30, 2017, 09:25:57 PM

Previous topic - Next topic

Mikl__

Hi, daydreamer2!
and to you "happy new year!" While there are New Year holidays, I'll think about applying SSE2 in calculating the square root

daydreamer

Quote from: Mikl__ on December 31, 2017, 09:45:58 PM
Hi, daydreamer2!
and to you "happy new year!" While there are New Year holidays, I'll think about applying SSE2 in calculating the square root

happy new year Miki :bgrin:
my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

daydreamer

hi
want this timings as research for prime test optimisation
starting with my cpu
also got reminded by Zedd that some members has got newer computers after this test
also interested in div,fdiv,divss,divps,divsd,divpd timings
also interested in mul,fmul,mulss,mulps,mulsd,mulpd timings

Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz (SSE4)

5432    cycles for 100 * fsqrt
4205    cycles for 100 * rsqrtss
4559    cycles for 100 * sqrtss
5435    cycles for 100 * sqrtps

5392    cycles for 100 * fsqrt
4204    cycles for 100 * rsqrtss
4553    cycles for 100 * sqrtss
5450    cycles for 100 * sqrtps

5385    cycles for 100 * fsqrt
4215    cycles for 100 * rsqrtss
4551    cycles for 100 * sqrtss
5435    cycles for 100 * sqrtps

5386    cycles for 100 * fsqrt
4198    cycles for 100 * rsqrtss
4557    cycles for 100 * sqrtss
5451    cycles for 100 * sqrtps

5407    cycles for 100 * fsqrt
4203    cycles for 100 * rsqrtss
4553    cycles for 100 * sqrtss
5449    cycles for 100 * sqrtps

87      bytes for fsqrt
97      bytes for rsqrtss
89      bytes for sqrtss
87      bytes for sqrtps

9483.79199 = fsqrt
9483.57227 = rsqrtss
9483.79199 = sqrtss
1.16594337e+09 = sqrtps

-
my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

zedd151

Per Magnus's suggestion...

Dell Optiplex 7050 SFF PC:
Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz (SSE4)

5367    cycles for 100 * fsqrt
4180    cycles for 100 * rsqrtss
4563    cycles for 100 * sqrtss
5435    cycles for 100 * sqrtps

5364    cycles for 100 * fsqrt
4173    cycles for 100 * rsqrtss
4527    cycles for 100 * sqrtss
5384    cycles for 100 * sqrtps

5366    cycles for 100 * fsqrt
4178    cycles for 100 * rsqrtss
4543    cycles for 100 * sqrtss
5475    cycles for 100 * sqrtps

5464    cycles for 100 * fsqrt
4241    cycles for 100 * rsqrtss
4569    cycles for 100 * sqrtss
5499    cycles for 100 * sqrtps

5410    cycles for 100 * fsqrt
4200    cycles for 100 * rsqrtss
4561    cycles for 100 * sqrtss
5424    cycles for 100 * sqrtps

87      bytes for fsqrt
97      bytes for rsqrtss
89      bytes for sqrtss
87      bytes for sqrtps

9483.79199 = fsqrt
9483.57227 = rsqrtss
9483.79199 = sqrtss
1.16594337e+09 = sqrtps

OTVOC 15 laptop:
Intel(R) Celeron(R) N5105 @ 2.00GHz (SSE4)

4494    cycles for 100 * fsqrt
3734    cycles for 100 * rsqrtss
3788    cycles for 100 * sqrtss
4906    cycles for 100 * sqrtps

4481    cycles for 100 * fsqrt
3709    cycles for 100 * rsqrtss
3835    cycles for 100 * sqrtss
4708    cycles for 100 * sqrtps

4462    cycles for 100 * fsqrt
3575    cycles for 100 * rsqrtss
3904    cycles for 100 * sqrtss
4838    cycles for 100 * sqrtps

4536    cycles for 100 * fsqrt
3637    cycles for 100 * rsqrtss
3879    cycles for 100 * sqrtss
4673    cycles for 100 * sqrtps

4409    cycles for 100 * fsqrt
3513    cycles for 100 * rsqrtss
3748    cycles for 100 * sqrtss
4649    cycles for 100 * sqrtps

87      bytes for fsqrt
97      bytes for rsqrtss
89      bytes for sqrtss
87      bytes for sqrtps

9483.79199 = fsqrt
9483.57227 = rsqrtss
9483.79199 = sqrtss
1.16594337e+09 = sqrtps

:cool:   Not too shabby, eh?
¯\_(ツ)_/¯

daydreamer

my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

daydreamer

my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

zedd151

Quote from: daydreamer on January 11, 2025, 04:41:50 AMfastest sqrt ever  :biggrin:

That is a bold statement, Magnus. That sounds like a challenge. :biggrin:
We'll see... I'll look at that later. :cool:


A few short minutes later...
"shape2.com"  :rolleyes:

Okay, lemme get dosbox...
You cannot view this attachment.

Is that what it is supposed to look like? (its the final screen)
¯\_(ツ)_/¯