microsoft/GSL

Add performance tests to PR actions

Open

#1.167 geöffnet am 12. Nov. 2024

Auf GitHub ansehen
 (10 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C++ (721 Forks)batch import
Effort: MediumHelp WantedPriority: LowStatus: OpenType: Infra

Repository-Metriken

Stars
 (5.695 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 8T) (1 gemergte PR in 30 T)

Beschreibung

It is important to maintain performance parity to std::span (at the very least when Safe Buffers are enabled). In order to track this, we should have performance tests between std::span and gsl::span for the latest standard library implementation across Clang, GCC, and MSVC.

@galenelias put together small benchmark comparing the two implementations on various workloads. They have been attached for convenience and provide a good starting point.

span_bench.zip

Contributor Guide