Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pdf-miner
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Qin Kaijie
pdf-miner
Commits
a0a9a8ad
Commit
a0a9a8ad
authored
Jun 26, 2024
by
quyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update ci
parent
275feb5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
benchmark.py
tools/benchmark.py
+3
-0
No files found.
tools/benchmark.py
View file @
a0a9a8ad
...
@@ -14,6 +14,9 @@ def test_cli():
...
@@ -14,6 +14,9 @@ def test_cli():
magicpdf_path
=
os
.
path
.
join
(
pdf_dev_path
,
"output"
)
magicpdf_path
=
os
.
path
.
join
(
pdf_dev_path
,
"output"
)
cmd
=
'cd
%
s && export PYTHONPATH=. && find
%
s -type f -name "*.pdf" | xargs -I{} python magic_pdf/cli/magicpdf.py pdf-command --pdf {}'
%
(
code_path
,
magicpdf_path
)
cmd
=
'cd
%
s && export PYTHONPATH=. && find
%
s -type f -name "*.pdf" | xargs -I{} python magic_pdf/cli/magicpdf.py pdf-command --pdf {}'
%
(
code_path
,
magicpdf_path
)
os
.
system
(
cmd
)
os
.
system
(
cmd
)
rm_cmd
=
"rm -rf
%
s"
%
(
pdf_res_path
)
os
.
system
(
rm_cmd
)
os
.
makedirs
(
pdf_res_path
)
for
root
,
dirs
,
files
in
os
.
walk
(
pdf_res_path
):
for
root
,
dirs
,
files
in
os
.
walk
(
pdf_res_path
):
for
magic_file
in
files
:
for
magic_file
in
files
:
for
file_type
in
file_types
:
for
file_type
in
file_types
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment