bytesparadise / libasciidoc

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

fix(parser): no need for a preamble wrapper if no title #1074

Closed xcoulon closed 2 years ago

xcoulon commented 2 years ago

Fixes #1073

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              47.8ms ± 2%    48.4ms ± 4%    ~     (p=0.161 n=9+9)
RealDocumentProcessing/vertx-examples.adoc-2     123ms ± 2%     123ms ± 2%    ~     (p=0.579 n=10+10)
RealDocumentProcessing/mocking.adoc-2            127ms ± 1%     132ms ± 2%  +3.93%  (p=0.000 n=10+10)

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

name                                          old allocs/op  new allocs/op  delta
RealDocumentProcessing/demo.adoc-2                175k ± 0%      175k ± 0%    ~     (p=0.815 n=9+9)
RealDocumentProcessing/vertx-examples.adoc-2      457k ± 0%      457k ± 0%    ~     (p=0.926 n=10+10)
RealDocumentProcessing/mocking.adoc-2             486k ± 0%      486k ± 0%    ~     (p=0.101 n=10+10)

Comparing with latest release:

name                                          old time/op    new time/op    delta
RealDocumentProcessing/demo.adoc-2              21.0ms ± 6%    48.4ms ± 4%  +130.37%  (p=0.000 n=9+9)
RealDocumentProcessing/vertx-examples.adoc-2    65.6ms ± 8%   123.2ms ± 2%   +87.90%  (p=0.000 n=10+10)
RealDocumentProcessing/mocking.adoc-2           62.3ms ± 6%   132.3ms ± 2%  +112.36%  (p=0.000 n=10+10)

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

name                                          old allocs/op  new allocs/op  delta
RealDocumentProcessing/demo.adoc-2                106k ± 0%      175k ± 0%   +64.92%  (p=0.000 n=7+9)
RealDocumentProcessing/vertx-examples.adoc-2      305k ± 0%      457k ± 0%   +49.67%  (p=0.000 n=10+10)
RealDocumentProcessing/mocking.adoc-2             326k ± 0%      486k ± 0%   +48.86%  (p=0.000 n=9+10)