sailfish/benches
Kogia-sima 28116fc125 Paste benchmark results collected on Cloud 2020-06-08 16:39:28 +09:00
..
benches Update benchmark result 2020-06-07 11:49:19 +09:00
src Use `rm_whitespace` in benchmark 2020-06-07 13:10:40 +09:00
templates Add benches/ directory 2020-06-06 18:28:14 +09:00
Cargo.lock Bump version (0.0.2 => 0.0.3) 2020-06-07 19:14:23 +09:00
Cargo.toml Bump version (0.0.2 => 0.0.3) 2020-06-07 19:14:23 +09:00
README.md Paste benchmark results collected on Cloud 2020-06-08 16:39:28 +09:00
bigtable.png Paste benchmark results collected on Cloud 2020-06-08 16:39:28 +09:00
teams.png Paste benchmark results collected on Cloud 2020-06-08 16:39:28 +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

Benchmark results were collected on the IBM Cloud Virtual Server Instance

  • OS: Ubuntu 18.04-64 Minimal for VSI
  • CPU Model Name: Intel(R) Xeon(R) CPU E5-2683 v4 @ 2.10GHz
  • BogoMIPS: 4200.04

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.