mirror of
https://github.com/danbulant/markdown-wasm
synced 2026-06-18 22:21:19 +00:00
benchmark: make graph images a little narrower for github
This commit is contained in:
parent
3e65f82ae1
commit
49395ddafa
4 changed files with 4 additions and 4 deletions
|
|
@ -43,7 +43,7 @@ function main() {
|
|||
// console.log({data})
|
||||
|
||||
const commonGraphConfig = {
|
||||
width: 960,
|
||||
width: 840, // ~ width of images on github
|
||||
fontSize: 16,
|
||||
color: d3.scaleOrdinal(d3.schemeTableau10),
|
||||
// color: d3.scaleOrdinal().range(["#111", "#333", "#555", "#777", "#999"]),
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="960" height="264" viewBox="0,0,960,264" font-family="-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif" font-size="16"><g text-anchor="end" font-weight="500"><text alignment-baseline="central" x="156" y="68" dx="-10">markdown-wasm</text><text alignment-baseline="central" x="156" y="104" dx="-10">markdown-it</text><text alignment-baseline="central" x="156" y="140" dx="-10">marked</text><text alignment-baseline="central" x="156" y="176" dx="-10">commonmark</text><text alignment-baseline="central" x="156" y="212" dx="-10">showdown</text></g><g><rect fill="#4e79a7" x="156" y="52" width="788" height="32"></rect><rect fill="#f28e2c" x="156" y="88" width="350.6581162871162" height="32"></rect><rect fill="#e15759" x="156" y="124" width="313.49798756784514" height="32"></rect><rect fill="#76b7b2" x="156" y="160" width="273.23224820605805" height="32"></rect><rect fill="#59a14f" x="156" y="196" width="34.61463024424154" height="32"></rect></g><g fill="white" text-anchor="end" font-weight="500"><text x="944" y="68" alignment-baseline="central" dx="-5">193,296</text><text x="506.6581162871162" y="104" alignment-baseline="central" dx="-5">86,016</text><text x="469.49798756784514" y="140" alignment-baseline="central" dx="-5">76,901</text><text x="429.23224820605805" y="176" alignment-baseline="central" dx="-5">67,024</text><text x="190.61463024424154" y="212" alignment-baseline="central" dx="5" fill="black" text-anchor="start">8,491</text></g><g transform="translate(0,48)" fill="none" font-size="12.8" font-family="-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif" text-anchor="middle" opacity="0.5"><g class="tick" opacity="1" transform="translate(156.5,0)"><line stroke="currentColor" y2="-6"></line><text fill="currentColor" y="-9" dy="0em">0</text></g><g class="tick" opacity="1" transform="translate(238.03288848131865,0)"><line stroke="currentColor" y2="-6"></line><text fill="currentColor" y="-9" dy="0em">20,000</text></g><g class="tick" opacity="1" transform="translate(319.56577696263736,0)"><line stroke="currentColor" y2="-6"></line><text fill="currentColor" y="-9" dy="0em">40,000</text></g><g class="tick" opacity="1" transform="translate(401.098665443956,0)"><line stroke="currentColor" y2="-6"></line><text fill="currentColor" y="-9" dy="0em">60,000</text></g><g class="tick" opacity="1" transform="translate(482.6315539252747,0)"><line stroke="currentColor" y2="-6"></line><text fill="currentColor" y="-9" dy="0em">80,000</text></g><g class="tick" opacity="1" transform="translate(564.1644424065934,0)"><line stroke="currentColor" y2="-6"></line><text fill="currentColor" y="-9" dy="0em">100,000</text></g><g class="tick" opacity="1" transform="translate(645.697330887912,0)"><line stroke="currentColor" y2="-6"></line><text fill="currentColor" y="-9" dy="0em">120,000</text></g><g class="tick" opacity="1" transform="translate(727.2302193692307,0)"><line stroke="currentColor" y2="-6"></line><text fill="currentColor" y="-9" dy="0em">140,000</text></g><g class="tick" opacity="1" transform="translate(808.7631078505494,0)"><line stroke="currentColor" y2="-6"></line><text fill="currentColor" y="-9" dy="0em">160,000</text></g><g class="tick" opacity="1" transform="translate(890.295996331868,0)"><line stroke="currentColor" y2="-6"></line><text fill="currentColor" y="-9" dy="0em">180,000</text></g></g></svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="840" height="264" viewBox="0,0,840,264" font-family="-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif" font-size="16"><g text-anchor="end" font-weight="500"><text alignment-baseline="central" x="156" y="68" dx="-10">markdown-wasm</text><text alignment-baseline="central" x="156" y="104" dx="-10">markdown-it</text><text alignment-baseline="central" x="156" y="140" dx="-10">marked</text><text alignment-baseline="central" x="156" y="176" dx="-10">commonmark</text><text alignment-baseline="central" x="156" y="212" dx="-10">showdown</text></g><g><rect fill="#4e79a7" x="156" y="52" width="668" height="32"></rect><rect fill="#f28e2c" x="156" y="88" width="297.2584031469462" height="32"></rect><rect fill="#e15759" x="156" y="124" width="265.7571772783256" height="32"></rect><rect fill="#76b7b2" x="156" y="160" width="231.6232763980289" height="32"></rect><rect fill="#59a14f" x="156" y="196" width="29.343366755270722" height="32"></rect></g><g fill="white" text-anchor="end" font-weight="500"><text x="824" y="68" alignment-baseline="central" dx="-5">193,296</text><text x="453.2584031469462" y="104" alignment-baseline="central" dx="-5">86,016</text><text x="421.7571772783256" y="140" alignment-baseline="central" dx="-5">76,901</text><text x="387.6232763980289" y="176" alignment-baseline="central" dx="-5">67,024</text><text x="185.34336675527072" y="212" alignment-baseline="central" dx="5" fill="black" text-anchor="start">8,491</text></g><g transform="translate(0,48)" fill="none" font-size="12.8" font-family="-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif" text-anchor="middle" opacity="0.5"><g class="tick" opacity="1" transform="translate(156.5,0)"><line stroke="currentColor" y2="-6"></line><text fill="currentColor" y="-9" dy="0em">0</text></g><g class="tick" opacity="1" transform="translate(225.61671257045793,0)"><line stroke="currentColor" y2="-6"></line><text fill="currentColor" y="-9" dy="0em">20,000</text></g><g class="tick" opacity="1" transform="translate(294.7334251409159,0)"><line stroke="currentColor" y2="-6"></line><text fill="currentColor" y="-9" dy="0em">40,000</text></g><g class="tick" opacity="1" transform="translate(363.8501377113739,0)"><line stroke="currentColor" y2="-6"></line><text fill="currentColor" y="-9" dy="0em">60,000</text></g><g class="tick" opacity="1" transform="translate(432.96685028183185,0)"><line stroke="currentColor" y2="-6"></line><text fill="currentColor" y="-9" dy="0em">80,000</text></g><g class="tick" opacity="1" transform="translate(502.0835628522898,0)"><line stroke="currentColor" y2="-6"></line><text fill="currentColor" y="-9" dy="0em">100,000</text></g><g class="tick" opacity="1" transform="translate(571.2002754227478,0)"><line stroke="currentColor" y2="-6"></line><text fill="currentColor" y="-9" dy="0em">120,000</text></g><g class="tick" opacity="1" transform="translate(640.3169879932057,0)"><line stroke="currentColor" y2="-6"></line><text fill="currentColor" y="-9" dy="0em">140,000</text></g><g class="tick" opacity="1" transform="translate(709.4337005636637,0)"><line stroke="currentColor" y2="-6"></line><text fill="currentColor" y="-9" dy="0em">160,000</text></g><g class="tick" opacity="1" transform="translate(778.5504131341216,0)"><line stroke="currentColor" y2="-6"></line><text fill="currentColor" y="-9" dy="0em">180,000</text></g></g></svg>
|
||||
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.8 KiB |
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 8.9 KiB |
Loading…
Reference in a new issue