sailfish/benches
Kogia-sima feef1d7cb5 Fix a typo 2020-06-06 18:48:48 +09:00
..
benches Add benches/ directory 2020-06-06 18:28:14 +09:00
src Add benches/ directory 2020-06-06 18:28:14 +09:00
templates Add benches/ directory 2020-06-06 18:28:14 +09:00
Cargo.lock Add benches/ directory 2020-06-06 18:28:14 +09:00
Cargo.toml License annotation for benchmarks 2020-06-06 18:46:12 +09:00
README.md Fix a typo 2020-06-06 18:48:48 +09:00
bigtable.png Add benches/ directory 2020-06-06 18:28:14 +09:00
teams.png Add benches/ directory 2020-06-06 18:28:14 +09:00

README.md

Rust template engine benchmarks

Performance comparison of template engines for Rust based on criterion crate

crates

  • askama: Type-safe, compiled Jinja-like templates for Rust
  • fomat: Alternative syntax for printing macros in Rust
  • horrorshow: A macro-based html builder for rust
  • markup: A blazing fast, type-safe template engine for Rust.
  • std::write!: the std library write! macro
  • yarte: Yet Another Rust Template Engine, is the fastest template engine
  • sailfish: Simple, small, and extremely fast template engine for Rust

Running the benchmarks

$ cargo bench

Environment

  • OS: Ubuntu 20.04 LTS
  • CPU Model Name: Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz
  • BogoMIPS: 3600.00

Results

  • Big table

Big table

  • Teams

Teams

License

This benchmark code is distributed under the special permission granted by Dirkjan Ochtman (See this issue). You cannot modify or redistribute the source code without an explicit permission.