Vc vs boost::simd
Tijskens Engelbert
[please enable javascript to see the address]
Tue Apr 1 21:27:08 CEST 2014
Dear all,
please find attached some simple tests comparing Vc and boost::simd.
I ran a set of simple array operations on float arrays of length 2000.
when the measurements start all arrays are in L1 cache and stay there.
z=x+y
z=x-y
z=x*y
z=x/y
z=sqrt(x)
z=log(x)
z=pow(x,y)
each array operation is run in scalar mode (but with auto-vectorization
enabled) and in vector mode with either Vc and boost::simd.
the tests are in files test.cpp and test.cpp, and the timing instrument
is in Timer.hpp.
each test is run 4 times with different number of repetitions:
10/100/1000/10000/100000. The results are in the attachments 10.txt,
100.txt, ...
i am a bit puzzled by the variation of the results between different
repetitions but generally Vc seems to be faster, and boost::simd
compiles really slow.
i ran the tests on an ivy-bridge cpu of 2.29 GHz, using avx, and with
ubuntu 13.10 as OS.
kindest regards,
bert
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 10.txt
URL: <http://compeng.uni-frankfurt.de/pipermail/vc/attachments/20140401/8a6d5cef/attachment-0005.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 100.txt
URL: <http://compeng.uni-frankfurt.de/pipermail/vc/attachments/20140401/8a6d5cef/attachment-0006.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 1000.txt
URL: <http://compeng.uni-frankfurt.de/pipermail/vc/attachments/20140401/8a6d5cef/attachment-0007.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 10000.txt
URL: <http://compeng.uni-frankfurt.de/pipermail/vc/attachments/20140401/8a6d5cef/attachment-0008.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 100000.txt
URL: <http://compeng.uni-frankfurt.de/pipermail/vc/attachments/20140401/8a6d5cef/attachment-0009.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.cpp
Type: text/x-c++src
Size: 8449 bytes
Desc: test.cpp
URL: <http://compeng.uni-frankfurt.de/pipermail/vc/attachments/20140401/8a6d5cef/attachment-0002.cpp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.cpp
Type: text/x-c++src
Size: 9061 bytes
Desc: test.cpp
URL: <http://compeng.uni-frankfurt.de/pipermail/vc/attachments/20140401/8a6d5cef/attachment-0003.cpp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Timer.hpp
Type: text/x-c++hdr
Size: 9178 bytes
Desc: Timer.hpp
URL: <http://compeng.uni-frankfurt.de/pipermail/vc/attachments/20140401/8a6d5cef/attachment-0001.hpp>
More information about the Vc
mailing list