Skip to content

Commit b89204d

Browse files
committed
Merge branch 'main' of github.com:andrewginns/andrewginns.github.io
2 parents feade05 + 3646f4c commit b89204d

File tree

8 files changed

+17315
-9179
lines changed

8 files changed

+17315
-9179
lines changed

npm_output.log

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
3+
> astro dev

package-lock.json

Lines changed: 1698 additions & 2050 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/merbench/LeaderboardTable.astro

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ const costRange = maxCost - minCost;
3636
<th class="sortable" data-sort-key="Avg_Cost" data-sort-type="number">
3737
Avg Cost/Run <span class="sort-indicator"></span>
3838
</th>
39+
<th class="sortable" data-sort-key="Price_per_Success" data-sort-type="number">
40+
Price/Success <span class="sort-indicator"></span>
41+
</th>
3942
<th class="sortable" data-sort-key="Avg_Duration" data-sort-type="number">
4043
Avg Duration <span class="sort-indicator"></span>
4144
</th>
@@ -90,6 +93,9 @@ const costRange = maxCost - minCost;
9093
</span>
9194
</div>
9295
</td>
96+
<td class="cost">
97+
{entry.Price_per_Success != null ? `$${entry.Price_per_Success.toFixed(4)}` : 'N/A'}
98+
</td>
9399
<td class="duration">{entry.Avg_Duration.toFixed(2)}s</td>
94100
<td class="tokens">{entry.Avg_Tokens.toLocaleString()}</td>
95101
<td class="runs">{entry.Runs}</td>
@@ -112,8 +118,8 @@ const costRange = maxCost - minCost;
112118
}
113119

114120
.leaderboard-section h2 {
115-
margin-top: 0;
116-
margin-bottom: 1.5rem;
121+
margin-top: -1rem;
122+
margin-bottom: 0.5rem;
117123
}
118124

119125
.leaderboard-table {
@@ -204,6 +210,7 @@ const costRange = maxCost - minCost;
204210
font-size: 0.85rem;
205211
text-transform: uppercase;
206212
letter-spacing: 0.5px;
213+
position: relative; /* Needed for tooltip positioning */
207214
}
208215

209216
/* Sortable header styles */

0 commit comments

Comments
 (0)