Closed HowToExpect closed 2 years ago
use Avx2::AlphaBlending elapsed is 5000us, usr InnerMixtureImage elapsed is 3000us
Hello!
1) I would not recommend to call function Avx2::AlphaBlending direct. This is not part of Simd Library API. You have to use function SimdAlphaBlending. 2) You can test performance of this function with using of 'Test' application. For example:
./Test -fi=AlphaBlending -w=1920 -h=1080 -fe=Uniform
The result shows that using of AVX2 gives significant performance gain compare to Base code.
--------------------------------------------------------------------------------------------
| Function | API Base Sse2 Sse41 Avx2 | Bs/S2 Bs/S4 Bs/A2 | Bs/S2 S2/S4 S4/A2 |
--------------------------------------------------------------------------------------------
| Common, ms | 0.522 3.205 1.084 0.721 0.522 | 2.96 4.45 6.14 | 2.96 1.50 1.38 |
--------------------------------------------------------------------------------------------
| AlphaBlending[1] | 0.215 1.338 0.305 0.299 0.214 | 4.38 4.47 6.27 | 4.38 1.02 1.40 |
| AlphaBlending[2] | 0.476 2.730 0.647 0.660 0.477 | 4.22 4.14 5.72 | 4.22 0.98 1.38 |
| AlphaBlending[3] | 0.704 5.091 4.984 0.971 0.718 | 1.02 5.24 7.09 | 1.02 5.13 1.35 |
| AlphaBlending[4] | 1.029 5.677 1.403 1.408 1.019 | 4.05 4.03 5.57 | 4.05 1.00 1.38 |
--------------------------------------------------------------------------------------------