Add the Benchmark blog template (`blog-benchmark`)
Mantenedores costumam responder em até 1 dia
Avaliação
Esta issue ainda não foi avaliada.
Descrição
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.
- Linguagem predominante
- TypeScript
- Estrelas
- 8
- Forks
- 4
- Merge médio
- 8h 19min
- PRs com merge (30d)
- 140
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de codercops/ogcops
-
[Bug] Meta analyzer ignores overlong og:title when <title> is missingTalvez já em andamento @srikar-naidu assumiu hoje. Abertabug hacktoberfest
codercops/ogcops#333 · 2 comentários · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
[Bug] Difficulty Badge ignores its Accent Color fieldTalvez já em andamento @prakashNalla assumiu hoje. Abertabug hacktoberfest
codercops/ogcops#331 · 4 comentários · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Hacktoberfest 2026: start hereTalvez já em andamento @Saifjafri212213 assumiu há 1 dia. Abertahacktoberfest
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 35/100
codercops/ogcops#88 · 13 comentários ·
Mantenedores costumam responder em até 1 dia
-
feature good first issue hacktoberfest templates
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 45/100
codercops/ogcops#5 · 20 comentários ·
Mantenedores costumam responder em até 1 dia
Todas as issues de codercops/ogcops
Issues semelhantes
-
Replace discontinued crypto-js in the themeTalvez já em andamento @aelmanaa assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
PaloAltoNetworks/docusaurus-openapi-docs#1689 ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
solana-foundation/solana-web3.js#4015 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
formatSearchQuery drops the :present modifier, so `email:present=true` is sent as `email=true`Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
Mantenedores costumam responder em até 1 dia
-
documentation
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 90/100
ivopogace/opencode-courier#422 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
chapel-lang/chapel-vscode#158 ·
Mantenedores costumam responder em até 1 dia