Skip to content

Commit

Permalink
Add visual benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
victrme committed Feb 16, 2025
1 parent dcd1c8d commit e8cff92
Show file tree
Hide file tree
Showing 2 changed files with 181 additions and 0 deletions.
180 changes: 180 additions & 0 deletions bench/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,180 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="description"
content="Favicon fetcher finds sites favicons and fetches them fast"
/>

<title>Favicon Fetcher: Find favicons and fetch them fast</title>
</head>
<body>
<table>
<thead>
<th>Favicon Fetcher</th>
<th>Icon Horse</th>
<th>Google API</th>
<th>Duckduckgo API</th>
</thead>
<tbody>
<tr>
<td>
<img
src="https://api.favicon.victr.me/blob/https://wikipedia.org"
alt=""
width="128"
height="128"
/>
</td>
<td>
<img
src="https://icon.horse/icon/wikipedia.org"
alt=""
width="128"
height="128"
/>
</td>
<td>
<img
src="https://www.google.com/s2/favicons?domain=wikipedia.org&sz=128"
alt=""
width="128"
height="128"
/>
</td>
<td>
<img
src="https://icons.duckduckgo.com/ip3/wikipedia.org.ico"
alt=""
width="128"
height="128"
/>
</td>
</tr>
<tr>
<td>
<img
src="https://api.favicon.victr.me/blob/https://open.spotify.com"
alt=""
width="128"
height="128"
/>
</td>
<td>
<img
src="https://icon.horse/icon/open.spotify.com"
alt=""
width="128"
height="128"
/>
</td>
<td>
<img
src="https://www.google.com/s2/favicons?domain=open.spotify.com&sz=128"
alt=""
width="128"
height="128"
/>
</td>
<td>
<img
src="https://icons.duckduckgo.com/ip3/open.spotify.com.ico"
alt=""
width="128"
height="128"
/>
</td>
</tr>
<tr>
<td>
<img
src="https://api.favicon.victr.me/blob/https://icon.horse"
alt=""
width="128"
height="128"
/>
</td>
<td>
<img
src="https://icon.horse/icon/icon.horse"
alt=""
width="128"
height="128"
/>
</td>
<td>
<img
src="https://www.google.com/s2/favicons?domain=icon.horse&sz=128"
alt=""
width="128"
height="128"
/>
</td>
<td>
<img
src="https://icons.duckduckgo.com/ip3/icon.horse.ico"
alt=""
width="128"
height="128"
/>
</td>
</tr>
<tr>
<td>
<img
src="https://api.favicon.victr.me/blob/https://ko-fi.com"
alt=""
width="128"
height="128"
/>
</td>
<td>
<img
src="https://icon.horse/icon/ko-fi.com"
alt=""
width="128"
height="128"
/>
</td>
<td>
<img
src="https://www.google.com/s2/favicons?domain=ko-fi.com&sz=128"
alt=""
width="128"
height="128"
/>
</td>
<td>
<img
src="https://icons.duckduckgo.com/ip3/ko-fi.com.ico"
alt=""
width="128"
height="128"
/>
</td>
</tr>
</tbody>
</table>
</body>
</html>

<style>
body {
font-family: monospace;
max-width: 580px;
margin: auto;
}

table {
margin-top: 5em;
border-collapse: collapse;
}

td,
th {
padding: 8px;
border: 1px solid #bbb;
}
</style>
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
},
"scripts": {
"demo": "npx http-server ./demo -c-1",
"bench": "npx http-server ./bench -c-1",
"dev": "npx wrangler dev ./package/src/index.ts",
"build": "tsup"
},
Expand Down

0 comments on commit e8cff92

Please sign in to comment.