Skip to content

Latest commit

 

History

History

conv_from_dec

Convert a string (dec) to value

  • SWAR version: naive and 3 different attempts to improve certain parts of naive conversion. For details see full article.
  • SSE and SSSE3 version, see full article.

Performance comparison

Output from the program benchmark.

Core i5 M540 @ 2.53GHz

method time [us] speedup
naive 247514 1.00
SWAR (1) 158043 1.57
SWAR (2) 148712 1.66
SWAR (3) 125978 1.96
SSE 37704 6.56
SSSE3 27271 9.07

Skylake Core i7-6700 CPU @ 3.40GHz

method time [us] speedup
naive 131904 1.00
SWAR (1) 84933 1.55
SWAR (2) 84945 1.55
SWAR (3) 75862 1.74
SSE 18698 7.05
SSSE3 17693 7.45