Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pubmed
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
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
gargantext
crawlers
pubmed
Commits
4ade4957
Commit
4ade4957
authored
Feb 13, 2023
by
Alfredo Di Napoli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add bench and longish XML
parent
1aa22af1
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
222337 additions
and
1 deletion
+222337
-1
Main.hs
bench/Main.hs
+13
-0
crawlerPubMed.cabal
crawlerPubMed.cabal
+10
-0
package.yaml
package.yaml
+0
-1
pubmed_long.xml
test/test-corpus/pubmed_long.xml
+222314
-0
No files found.
bench/Main.hs
0 → 100644
View file @
4ade4957
module
Main
where
import
PUBMED.Parser
import
Test.Tasty.Bench
main
::
IO
()
main
=
defaultMain
[
bgroup
"PUBMED"
[
bench
"parser small"
$
whnfIO
(
parsePubMedFile
"test/test-corpus/pubmed-29768149.xml"
)
,
bench
"parser medium"
$
whnfIO
(
parsePubMedFile
"test/test-corpus/pubmed_long.xml"
)
]
]
crawlerPubMed.cabal
View file @
4ade4957
...
...
@@ -21,6 +21,7 @@ extra-source-files:
data-files:
test/test-corpus/pubmed-29768149.xml
test/test-corpus/pubmed_long.xml
source-repository head
type: git
...
...
@@ -140,3 +141,12 @@ test-suite crawlerPubMed-test
, text
, time
default-language: Haskell2010
benchmark bench-foo
type: exitcode-stdio-1.0
hs-source-dirs: bench
main-is: Main.hs
build-depends:
base
, crawlerPubMed
, tasty-bench
package.yaml
View file @
4ade4957
...
...
@@ -79,4 +79,3 @@ tests:
-
-with-rtsopts=-N
dependencies
:
-
crawlerPubMed
test/test-corpus/pubmed_long.xml
0 → 100644
View file @
4ade4957
This diff is collapsed.
Click to expand it.
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