Components / AI Dashboards
AI Model Performance Table
A comparison table showing AI model performance benchmarks with sortable columns for speed, accuracy, and cost.
Components / AI Dashboards
A comparison table showing AI model performance benchmarks with sortable columns for speed, accuracy, and cost.
| Model Name | Inference | Accuracy | Cost/1K |
|---|---|---|---|
| GPT-4o | 112ms | 98.4% | $0.015 |
| Claude 3.5 Sonnet | 145ms | 97.9% | $0.012 |
| Gemini 1.5 Pro | 92ms | 96.5% | $0.008 |
| Llama 3 70B | 84ms | 94.2% | $0.005 |
Install the core libraries required for this component.
npm install react"use client";
import React from "react";
const models = [
{ name: "GPT-4o", speed: "112ms", accuracy: "98.4%", cost: "$0.015" },
{ name: "Claude 3.5 Sonnet", speed: "145ms", accuracy: "97.9%", cost: "$0.012" },
{ name: "Gemini 1.5 Pro", speed: "92ms", accuracy: "96.5%", cost: "$0.008" },
{ name: "Llama 3 70B", speed: "84ms", accuracy: "94.2%", cost: "$0.005" },
];
export default function AIModelPerformanceTable() {
return (
<div className="rounded-xl border border-zinc-200 dark:border-zinc-800 bg-white dark:bg-zinc-950 shadow-sm w-full max-w-2xl mx-auto overflow-hidden">
<div className="overflow-x-auto">
<table className="w-full text-left text-xs">
<thead className="bg-zinc-50 dark:bg-zinc-900 border-b border-zinc-200 dark:border-zinc-800">
<tr>
<th className="px-4 py-3 font-semibold text-zinc-900 dark:text-zinc-100">Model Name</th>
<th className="px-4 py-3 font-semibold text-zinc-900 dark:text-zinc-100">Inference</th>
<th className="px-4 py-3 font-semibold text-zinc-900 dark:text-zinc-100">Accuracy</th>
<th className="px-4 py-3 font-semibold text-zinc-900 dark:text-zinc-100">Cost/1K</th>
</tr>
</thead>
<tbody className="divide-y divide-zinc-200 dark:divide-zinc-800">
{models.map((model) => (
<tr key={model.name} className="hover:bg-zinc-50/50 dark:hover:bg-zinc-900/50 transition-colors">
<td className="px-4 py-3 font-medium text-zinc-900 dark:text-zinc-100">{model.name}</td>
<td className="px-4 py-3 text-zinc-600 dark:text-zinc-400 font-mono">{model.speed}</td>
<td className="px-4 py-3 text-zinc-600 dark:text-zinc-400">{model.accuracy}</td>
<td className="px-4 py-3 text-zinc-600 dark:text-zinc-400 font-mono">{model.cost}</td>
</tr>
))}
</tbody>
</table>
</div>
</div>
);
} "use client";
import React from "react";
const models = [
{ name: "GPT-4o", speed: "112ms", accuracy: "98.4%", cost: "$0.015" },
{ name: "Claude 3.5 Sonnet", speed: "145ms", accuracy: "97.9%", cost: "$0.012" },
{ name: "Gemini 1.5 Pro", speed: "92ms", accuracy: "96.5%", cost: "$0.008" },
{ name: "Llama 3 70B", speed: "84ms", accuracy: "94.2%", cost: "$0.005" },
];
export default function AIModelPerformanceTable() {
return (
<div className="rounded-xl border border-zinc-200 dark:border-zinc-800 bg-white dark:bg-zinc-950 shadow-sm w-full max-w-2xl mx-auto overflow-hidden">
<div className="overflow-x-auto">
<table className="w-full text-left text-xs">
<thead className="bg-zinc-50 dark:bg-zinc-900 border-b border-zinc-200 dark:border-zinc-800">
<tr>
<th className="px-4 py-3 font-semibold text-zinc-900 dark:text-zinc-100">Model Name</th>
<th className="px-4 py-3 font-semibold text-zinc-900 dark:text-zinc-100">Inference</th>
<th className="px-4 py-3 font-semibold text-zinc-900 dark:text-zinc-100">Accuracy</th>
<th className="px-4 py-3 font-semibold text-zinc-900 dark:text-zinc-100">Cost/1K</th>
</tr>
</thead>
<tbody className="divide-y divide-zinc-200 dark:divide-zinc-800">
{models.map((model) => (
<tr key={model.name} className="hover:bg-zinc-50/50 dark:hover:bg-zinc-900/50 transition-colors">
<td className="px-4 py-3 font-medium text-zinc-900 dark:text-zinc-100">{model.name}</td>
<td className="px-4 py-3 text-zinc-600 dark:text-zinc-400 font-mono">{model.speed}</td>
<td className="px-4 py-3 text-zinc-600 dark:text-zinc-400">{model.accuracy}</td>
<td className="px-4 py-3 text-zinc-600 dark:text-zinc-400 font-mono">{model.cost}</td>
</tr>
))}
</tbody>
</table>
</div>
</div>
);
} Internal functions used to handle component logic.
| Function | Parameters |
|---|---|
| AIModelPerformanceTable() | None |
All variable declarations found in this component.
| Name | Kind | Value |
|---|---|---|
| models | | [ |
Every JSX/HTML tag used in this component, with usage count and source.
| Tag | Count | Type | Source |
|---|---|---|---|
| <div> | 2× | | Native HTML |
| <table> | 1× | | Native HTML |
| <tbody> | 1× | | Native HTML |
| <td> | 4× | | Native HTML |
| <th> | 4× | | Native HTML |
| <thead> | 1× | | Native HTML |
| <tr> | 2× | | Native HTML |