Skip to content

compareHist updated with wide intrinsics - #13334

Merged
alalek merged 3 commits into
opencv:3.4from
terfendail:histogram_wintr
Dec 13, 2018
Merged

alalek merged 3 commits into
opencv:3.4from
terfendail:histogram_wintr

Conversation

@terfendail

Copy link
Copy Markdown
Contributor

This pullrequest changes

compareHist reworked to use wide universal intrinsics

@terfendail

Copy link
Copy Markdown
Contributor Author
Performance for SSE2 baseline
Performance test Reference time PR time Speedup
compareHist::Dim_Cmpmethod::(1, 0) 0.002 0.003 0.92
compareHist::Dim_Cmpmethod::(1, 1) 0.004 0.005 0.91
compareHist::Dim_Cmpmethod::(1, 2) 0.002 0.001 1.68
compareHist::Dim_Cmpmethod::(1, 3) 0.003 0.003 0.91
compareHist::Dim_Cmpmethod::(1, 4) 0.005 0.005 0.93
compareHist::Dim_Cmpmethod::(1, 5) 0.085 0.093 0.91
compareHist::Dim_Cmpmethod::(3, 0) 12.592 12.582 1.00
compareHist::Dim_Cmpmethod::(3, 1) 20.588 21.331 0.97
compareHist::Dim_Cmpmethod::(3, 2) 10.991 10.117 1.09
compareHist::Dim_Cmpmethod::(3, 3) 14.040 14.003 1.00
compareHist::Dim_Cmpmethod::(3, 4) 21.389 21.817 0.98
compareHist::Dim_Cmpmethod::(3, 5) 424.036 431.630 0.98
Performance for SSE4_2 baseline
Performance test Reference time PR time Speedup
compareHist::Dim_Cmpmethod::(1, 0) 0.003 0.002 1.09
compareHist::Dim_Cmpmethod::(1, 1) 0.005 0.004 1.09
compareHist::Dim_Cmpmethod::(1, 2) 0.002 0.001 2.00
compareHist::Dim_Cmpmethod::(1, 3) 0.003 0.003 1.09
compareHist::Dim_Cmpmethod::(1, 4) 0.005 0.004 1.11
compareHist::Dim_Cmpmethod::(1, 5) 0.092 0.086 1.07
compareHist::Dim_Cmpmethod::(3, 0) 12.701 12.614 1.01
compareHist::Dim_Cmpmethod::(3, 1) 21.398 21.269 1.01
compareHist::Dim_Cmpmethod::(3, 2) 11.183 10.050 1.11
compareHist::Dim_Cmpmethod::(3, 3) 14.152 14.453 0.98
compareHist::Dim_Cmpmethod::(3, 4) 21.838 21.899 1.00
compareHist::Dim_Cmpmethod::(3, 5) 427.498 430.310 0.99
Performance for AVX2 baseline
Performance test Reference time PR time Speedup
compareHist::Dim_Cmpmethod::(1, 0) 0.002 0.001 1.69
compareHist::Dim_Cmpmethod::(1, 1) 0.003 0.003 1.00
compareHist::Dim_Cmpmethod::(1, 2) 0.002 0.001 2.57
compareHist::Dim_Cmpmethod::(1, 3) 0.002 0.002 1.01
compareHist::Dim_Cmpmethod::(1, 4) 0.004 0.004 1.00
compareHist::Dim_Cmpmethod::(1, 5) 0.089 0.068 1.31
compareHist::Dim_Cmpmethod::(3, 0) 11.420 10.280 1.11
compareHist::Dim_Cmpmethod::(3, 1) 21.121 21.165 1.00
compareHist::Dim_Cmpmethod::(3, 2) 11.035 9.718 1.14
compareHist::Dim_Cmpmethod::(3, 3) 14.263 14.024 1.02
compareHist::Dim_Cmpmethod::(3, 4) 22.171 22.351 0.99
compareHist::Dim_Cmpmethod::(3, 5) 427.777 426.994 1.00

@terfendail
terfendail force-pushed the histogram_wintr branch 2 times, most recently from 0d02387 to a2179a9 Compare December 12, 2018 15:18

@alalek alalek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 👍

@alalek
alalek merged commit 3903174 into opencv:3.4 Dec 13, 2018
@alalek alalek mentioned this pull request Dec 13, 2018
@terfendail
terfendail deleted the histogram_wintr branch December 14, 2018 13:31
SavyaSanchi-Sharma pushed a commit to SavyaSanchi-Sharma/opencv that referenced this pull request Jul 30, 2026
* added performance test for compareHist

* compareHist reworked to use wide universal intrinsics

* Disabled vectorization for CV_COMP_CORREL and CV_COMP_BHATTACHARYYA if f64 is unsupported
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants