tsutsu3 / linkify-it-py

Links recognition library with full unicode support
Other
15 stars 8 forks source link

No compile #9

Closed tsutsu3 closed 3 years ago

tsutsu3 commented 3 years ago

close #4

codecov-io commented 3 years ago

Codecov Report

Merging #9 (50f0e11) into main (d08fa16) will increase coverage by 1.02%. The diff coverage is 97.43%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main       #9      +/-   ##
==========================================
+ Coverage   94.63%   95.65%   +1.02%     
==========================================
  Files           3        3              
  Lines         298      299       +1     
  Branches       51       51              
==========================================
+ Hits          282      286       +4     
+ Misses          9        8       -1     
+ Partials        7        5       -2     
Flag Coverage Δ
pytests 95.65% <97.43%> (+1.02%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
linkify_it/main.py 94.90% <97.43%> (+1.20%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update d08fa16...50f0e11. Read the comment docs.

tsutsu3 commented 3 years ago

linkify-it-py match benchmark:

No compile very slow with test_match[many_fast.txt]

tsutsu3 commented 3 years ago

Use from markdown-it-py:

with compile:

create instance      0.36269426345825195
many.txt             0.2061786651611328
spec.txt             0.2035367488861084
many copy.txt        0.0050029754638671875
link_fuzzy.txt       0.003765106201171875
many_fast.txt        0.004827022552490234
email_fuzzy.txt      0.003922939300537109
link_normal.txt      0.003412961959838867

no compile:

create instance      0.0003609657287597656
many.txt             0.4461948871612549
spec.txt             0.2035810947418213
many copy.txt        0.005114078521728516
link_fuzzy.txt       0.0038771629333496094
many_fast.txt        0.0048329830169677734
email_fuzzy.txt      0.0037300586700439453
link_normal.txt      0.003592967987060547