# Asciidoc + Hugo performance

**URL:** <https://discourse.gohugo.io/t/asciidoc-hugo-performance/10637>\
**Category:** support\
**Tags:** asciidoc\
**Created:** [February 19, 2018, 7:33pm UTC](https://discourse.gohugo.io/t/asciidoc-hugo-performance/10637 "2018-02-19T19:33:23Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![hybras](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/hybras/32/14551_2.png) [@hybras](https://discourse.gohugo.io/u/hybras)\
**Post date:** [September 10, 2023, 8:21pm UTC](https://discourse.gohugo.io/t/asciidoc-hugo-performance/10637/14 "2023-09-10T20:21:12Z")

</div>

It seems the overhead is due to there being one asciidoctor process spawned per file. Running asciidoctor in batch mode is fast.

My benchmarking attempts with

- hyperfine (benchmarking tool)

- laptop: 2020 arm m1 macbook air, 8gb ram, macos ventura 13.5.1

- hugo version: v0.111.3+extended

- 

> **site Summary**
>
> | type | count |
> | --- | --- |
> | Pages | 121 |
> | Non-page files | 29 |
> | Static files | 9 |

- 

> **bench results**
>
> | bench name | command | time (sec) |
> | --- | --- | --- |
> | stock | `hugo` | 8.9 |
> | shim | `alias asciidoctor=cat` | 0.7 |
> | standalone | `fd -e adoc ` **`-x`** ` asciidoctor -o -` | 6.2 |
> | batch | `fd -e adoc` **`-X`** `asciidoctor -o -` | 0.38 |

---

_[View the full topic](https://discourse.gohugo.io/t/asciidoc-hugo-performance/10637)._
