Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
.gitignore
Makefile
README.rst
benchmark.cpp
common.cpp
parse.naive.cpp
parse.sse.cpp
parse.ssse3.cpp
parse.swar.cpp
procedures.cpp
verify.cpp

README.rst

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