Add the Benchmark blog template (`blog-benchmark`)
Les mainteneurs répondent en général sous 1 jour
Évaluation
Cette issue n'a pas encore été évaluée.
Description
Part of #5. For posts that compare how fast (or how big) a few things are.
Idea
A small "Benchmark" label in the accent color at the top, the post title under it ("Bun vs Deno vs Node: HTTP throughput") with an optional one-line note ("Requests per second, higher is better"). Then up to four horizontal bars, one per row: the name on the left ("Bun"), the bar, and the number at the end ("112,000 req/s"). Every bar is scaled to the largest value, so the largest one fills its track and is drawn in the accent color, while the others use a muted color. The site name sits at the bottom.
Template details
- File:
src/templates/blog/benchmark.ts, idblog-benchmark - Fields:
commonFields.title,commonFields.description(the note, optional),name1toname4(text, optional, defaults "Bun", "Deno", "Node" and blank),value1tovalue4(number, optional, defaults 112000, 71000, 48000 and blank),unit(text, optional, default "req/s"),commonFields.siteName,commonFields.bgColor,commonFields.accentColor,commonFields.textColor
Where to look
- Closest reference:
src/templates/github/language-bars.ts(rows of labeled bars),src/templates/blog/table-of-contents.ts(a short list where blank rows are skipped)
Acceptance criteria
- Bars are scaled to the largest value, the largest is in the accent color, and the numbers show with thousands separators plus the unit when it's set
- A row with a blank name, or a value that isn't a number of 0 or more, is skipped with no gap; all-zero values draw empty bars without dividing by zero; and with every row skipped the chart area hides cleanly
- A long title, note or name shrinks with
autoFontSize()and then truncates - The label and the accent bar stay readable on a light background
- Re-exported in
src/templates/blog/index.tsand registered in the blog block ofsrc/templates/registry.ts - Meets the shared template checklist in #5
One template per contributor at a time, so more people get a chance.
Want to work on this? Comment below and I'll assign it to you. Please take one issue at a time, branch off dev, and open your PR against dev with Closes #301 in the description.
- Langage dominant
- TypeScript
- Étoiles
- 8
- Forks
- 4
- Merge moyen
- 8 h 19 min
- PR mergées (30 j)
- 161
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un 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 codercops/ogcops
-
[Bug] “Copy Recommended Meta Tags” generates an unusable placeholder image URLPeut-être pris @CreatorguyS l’a pris aujourd’hui. Ouvertebug enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
codercops/ogcops#378 · 4 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
Pricing Highlight brings back cleared featuresPeut-être pris @CreatorguyS l’a pris aujourd’hui. Ouvertebug
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
codercops/ogcops#375 · 4 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
[Bug] Clipboard fallback reports success even when copying failsPeut-être pris @srikar-naidu l’a pris aujourd’hui. Ouvertebug hacktoberfest
codercops/ogcops#384 · 3 commentaires · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
Release Notes brings back cleared changes, including "Breaking: Updated API"Peut-être pris @prakashNalla l’a pris aujourd’hui. Ouvertebug hacktoberfest
codercops/ogcops#372 · 4 commentaires · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
VS Code Theme loses its JSON indentationPeut-être pris @prakashNalla l’a pris aujourd’hui. Ouvertebug hacktoberfest
codercops/ogcops#371 · 3 commentaires · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de codercops/ogcops
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
NousResearch/hermes-agent#147433 ·
Les mainteneurs répondent en général sous 1 jour
-
needs-triage🔍
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
Dokploy/dokploy#5836 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
guards: accept readonly arrays (and other array-likes) in isEmpty / hasElements / safeLengthOuverteenhancement tech debt
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
ehmpathy/rhachet-roles-bhrain#739 ·
Les mainteneurs répondent en général sous 1 jour