Skip to content

Commit 38c8c76

Browse files
authored
Merge pull request #3775 from Shreeshrii/disableopenmp
Add benchmark test with disable-openmp
2 parents dd51e32 + ac69d07 commit 38c8c76

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

.github/workflows/autotools.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ on:
77
- cron: 0 20 * * *
88
jobs:
99

10-
1110
linux:
1211
runs-on: ${{ matrix.config.os }}
1312
strategy:
@@ -109,6 +108,29 @@ jobs:
109108
${{ matrix.config.cxx }} -o basicapitest testing/basicapitest.cpp -I/usr/local/include -L/usr/local/lib `pkg-config --cflags --libs tesseract lept ` -pthread -std=c++11
110109
./basicapitest
111110
111+
- name: Setup for Tesseract benchmark using image from issue 263 fifteen times in a list file
112+
run: |
113+
wget -O i263_speed.jpg https://cloud.githubusercontent.com/assets/9968625/13674495/ac261db4-e6ab-11e5-9b4a-ad91d5b4ff87.jpg
114+
printf 'i263_speed.jpg\n%.0s' {1..15} > benchmarks.list
115+
lscpu
116+
free
117+
tesseract -v
118+
119+
- name: Run Tesseract using image from issue 263 with tessdata_fast
120+
run: |
121+
time tesseract benchmarks.list - --tessdata-dir ../tessdata_fast > /dev/null 2>&1
122+
echo "tessdata_fast - disable-openmp"
123+
124+
- name: Run Tesseract using image from issue 263 with tessdata_best
125+
run: |
126+
time tesseract benchmarks.list - --tessdata-dir ../tessdata_best > /dev/null 2>&1
127+
echo "tessdata_best - disable-openmp"
128+
129+
- name: Run Tesseract using image from issue 263 with tessdata_fast
130+
run: |
131+
time tesseract benchmarks.list - --tessdata-dir ../tessdata > /dev/null 2>&1
132+
echo "tessdata - disable-openmp"
133+
112134
- name: Display Compiler Version
113135
run: |
114136
${{ matrix.config.cxx }} --version

0 commit comments

Comments
 (0)