bytesparadise / libasciidoc

A Golang library for processing Asciidoc files.
Apache License 2.0
205 stars 25 forks source link

refactor(parser): simplify DocumentHeader grammar rule and type #1075

Closed xcoulon closed 2 years ago

xcoulon commented 2 years ago

Signed-off-by: Xavier Coulon xcoulon@redhat.com

github-actions[bot] commented 2 years ago

Comparing with master branch:

name                                          old time/op    new time/op    delta
RealDocumentProcessing/demo.adoc-2              38.3ms ± 2%    38.7ms ± 3%    ~     (p=0.200 n=9+8)
RealDocumentProcessing/vertx-examples.adoc-2    95.4ms ± 0%    96.0ms ± 2%  +0.68%  (p=0.001 n=8+9)
RealDocumentProcessing/mocking.adoc-2            104ms ± 1%     104ms ± 0%    ~     (p=0.101 n=10+8)

name                                          old alloc/op   new alloc/op   delta
RealDocumentProcessing/demo.adoc-2              12.8MB ± 0%    12.8MB ± 0%    ~     (p=0.743 n=9+8)
RealDocumentProcessing/vertx-examples.adoc-2    30.9MB ± 0%    30.9MB ± 0%    ~     (p=0.400 n=9+10)
RealDocumentProcessing/mocking.adoc-2           28.7MB ± 0%    28.7MB ± 0%    ~     (p=0.481 n=10+10)

name                                          old allocs/op  new allocs/op  delta
RealDocumentProcessing/demo.adoc-2                175k ± 0%      175k ± 0%    ~     (p=0.908 n=9+8)
RealDocumentProcessing/vertx-examples.adoc-2      456k ± 0%      456k ± 0%    ~     (p=0.314 n=9+10)
RealDocumentProcessing/mocking.adoc-2             486k ± 0%      486k ± 0%    ~     (p=0.425 n=10+10)

Comparing with latest release:

name                                          old time/op    new time/op    delta
RealDocumentProcessing/demo.adoc-2              16.8ms ± 0%    38.7ms ± 3%  +130.24%  (p=0.000 n=8+8)
RealDocumentProcessing/vertx-examples.adoc-2    48.3ms ± 1%    96.0ms ± 2%   +98.78%  (p=0.000 n=10+9)
RealDocumentProcessing/mocking.adoc-2           48.2ms ± 2%   103.9ms ± 0%  +115.52%  (p=0.000 n=10+8)

name                                          old alloc/op   new alloc/op   delta
RealDocumentProcessing/demo.adoc-2              8.85MB ± 0%   12.83MB ± 0%   +45.03%  (p=0.000 n=10+8)
RealDocumentProcessing/vertx-examples.adoc-2    24.0MB ± 0%    30.9MB ± 0%   +28.73%  (p=0.000 n=10+10)
RealDocumentProcessing/mocking.adoc-2           21.6MB ± 0%    28.7MB ± 0%   +32.71%  (p=0.000 n=9+10)

name                                          old allocs/op  new allocs/op  delta
RealDocumentProcessing/demo.adoc-2                106k ± 0%      175k ± 0%   +64.89%  (p=0.000 n=8+8)
RealDocumentProcessing/vertx-examples.adoc-2      305k ± 0%      456k ± 0%   +49.61%  (p=0.000 n=10+10)
RealDocumentProcessing/mocking.adoc-2             326k ± 0%      486k ± 0%   +48.86%  (p=0.000 n=10+10)

codecov[bot] commented 2 years ago

Codecov Report

Merging #1075 (c8a91da) into master (c7f0b22) will increase coverage by 0.01%. The diff coverage is 86.36%.

@@            Coverage Diff             @@
##           master    #1075      +/-   ##
==========================================
+ Coverage   80.91%   80.93%   +0.01%     
==========================================
  Files          90       90              
  Lines        7583     7585       +2     
==========================================
+ Hits         6136     6139       +3     
+ Misses        950      949       -1     
  Partials      497      497