Separating benchmarks with different complexity and benchmarks with just variants
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 25/100
- Type d'issue
- Documentation
- Clarté
- À clarifier
- Activité
- À l'abandon
- Stack technique
- ruby
- Domaine
- documentation, performance
Piste de recherche
Commencez par examiner les exemples de benchmark du dépôt, notamment l’exemple lié Array#bsearch versus Array#find, et comparez les résultats de CRuby aux benchmarks de TruffleRuby référencés. La réalisation doit distinguer les résultats déterminés par la complexité des variantes sensibles à l’implémentation et ajouter les réserves proposées, mais l’issue n’identifie ni fichiers ni tests.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Hello there,
I think it would be worthwhile to separate the example in two categories:
- Benchmarks which are faster due to the variants having different complexity (for example, https://github.com/JuanitoFatas/fast-ruby#arraybsearch-vs-arrayfind-code). Those I believe will remain with a clear advantage for one of the variants for a long time.
- Other benchmarks, where the difference is minimal, and highly relies on the specific Ruby implementation and version, and where the slow and fast variants might switch regularly.
I think the second category deserves a clear warning that those results were measured on some version of CRuby and might not apply anymore, and likely do not apply to other Ruby implementations.
For fun, @gogainda ran these benchmarks on TruffleRuby at https://github.com/gogainda/fast-truffleruby
What I can see from a quick look is many of the differences on MRI don't exist on TruffleRuby (e.g., Sequential vs Parallel Assignment).
Also, many of these micro benchmarks optimize away (>1 billion i/s), i.e., in other words doing that operation alone costs basically nothing or like <10 cycles, which I interpret as a useful word of caution against microbenchmarks which might test something real code wouldn't, and might show differences that don't matter in practice.
I'd recommend in general to benchmark in the setup of your app/program, on the machine where the performance will matter. For example, a variant might give be 25% faster in a microbenchmark, but yield a 0% speedup on the full app and therefore be of limited value.
- Langage dominant
- Ruby
- Étoiles
- 5.7k
- Forks
- 370
- Merge moyen
- 4 h 42 min
- PR mergées (30 j)
- 13
Préparer son environnement
- Fournit un Dockerfile ou un fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de fastruby/fast-ruby
-
Difficulté 2/5 1-3 heures Accessibilité débutants 52/100
fastruby/fast-ruby#230 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 3/5 1-2 jours Accessibilité débutants 35/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 45/100
fastruby/fast-ruby#220 · 6 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 4/5 3-5 jours Accessibilité débutants 42/100
fastruby/fast-ruby#208 · 7 commentaires · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
-
[FEATURE REQUEST] Use the project's WIKI to share results for each Ruby version with latest CI resultsPeut-être pris @JuanVqz l’a pris il y a 7 jours. Ouverte
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 30/100
fastruby/fast-ruby#206 · 4 commentaires · 1 réaction · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de fastruby/fast-ruby
Issues similaires
-
Použiť Redis pre ActionCableOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
slovensko-digital/autogram-portal#392 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
voxpupuli/puppet-quadlets#122 · 5 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 82/100
TheOdinProject/curriculum#31452 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
-
revoir les metions de la DGEOuverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 72/100
betagouv/conseillers-entreprises#4720 ·
Les mainteneurs répondent en général sous 3 jours