sailfish/benches
Kogia-sima fcf3bc1be4 Revert "Remove benchmarks"
This reverts commit 7726b4c063.
2020-12-16 15:20:10 +09:00
..
benches Revert "Remove benchmarks" 2020-12-16 15:20:10 +09:00
src Revert "Remove benchmarks" 2020-12-16 15:20:10 +09:00
templates Revert "Remove benchmarks" 2020-12-16 15:20:10 +09:00
templates_ructe Revert "Remove benchmarks" 2020-12-16 15:20:10 +09:00
Cargo.lock Revert "Remove benchmarks" 2020-12-16 15:20:10 +09:00
Cargo.toml Revert "Remove benchmarks" 2020-12-16 15:20:10 +09:00
README.md Revert "Remove benchmarks" 2020-12-16 15:20:10 +09:00
bigtable.png Revert "Remove benchmarks" 2020-12-16 15:20:10 +09:00
teams.png Revert "Remove benchmarks" 2020-12-16 15:20:10 +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
  • handlebars: Handlebars templating language implemented in Rust and for Rust.
  • horrorshow: A macro-based html builder for rust
  • liquid: the liquid templating language for Rust
  • markup: A blazing fast, type-safe template engine for Rust.
  • maud: Compile-time HTML templates for Rust
  • ramhorns: Fast Mustache template engine implementation in pure Rust
  • ructe: Rust Compiled Templates with static-file handling
  • std::write!: the std library write! macro
  • tera: A template engine for Rust based on Jinja2/Django
  • 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

Copyright (c) 2020 Dirkjan Ochtman and Ryohei Machida

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.