microsoft/GSL

Add performance tests to PR actions

Open

#1167 aperta il 12 nov 2024

Vedi su GitHub
 (10 commenti) (0 reazioni) (0 assegnatari)C++ (721 fork)batch import
Effort: MediumHelp WantedPriority: LowStatus: OpenType: Infra

Metriche repository

Star
 (5695 star)
Metriche merge PR
 (Merge medio 8g) (1 PR mergiata in 30 g)

Descrizione

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

Guida contributor