rust-default-arguments-benchmark

A simple benchmark to evaluate the performance impact of using structs that implement Default as function arguments. (by lucamoller)

Rust-default-arguments-benchmark Alternatives

Similar projects and alternatives to rust-default-arguments-benchmark

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better rust-default-arguments-benchmark alternative or higher similarity.

rust-default-arguments-benchmark reviews and mentions

Posts with mentions or reviews of rust-default-arguments-benchmark. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-08-21.
  • Rust doesn’t support default function arguments. Or does it?
    4 projects | /r/rust | 21 Aug 2021
    I've added the builder pattern to my benchmark. The results were that the 3 implementations were indistinguishable when function inlining was allowed. When inlining was not allowed, both the default trait pattern and the builder pattern suffered similar performance penalties (maybe those penalties are actually associated to having a struct as argument?).

Stats

Basic rust-default-arguments-benchmark repo stats
1
0
2.6
over 2 years ago

lucamoller/rust-default-arguments-benchmark is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of rust-default-arguments-benchmark is Rust.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com