mirror of
https://github.com/voson-wang/toon.git
synced 2026-01-29 15:24:10 +08:00
docs: update benchmarks table
This commit is contained in:
@@ -18,8 +18,8 @@ AI is becoming cheaper and more accessible, but larger context windows allow for
|
|||||||
|
|
||||||
<!-- automd:file src="./docs/benchmarks.md" -->
|
<!-- automd:file src="./docs/benchmarks.md" -->
|
||||||
|
|
||||||
| Example | JSON | TOON | Saved | Reduction |
|
| Example | JSON | TOON | Tokens Saved | Reduction |
|
||||||
|---------|------|------|-------|-----------|
|
| ------- | ---- | ---- | ------------ | --------- |
|
||||||
| 👤 Simple user object | 31 | 18 | 13 | **41.9%** |
|
| 👤 Simple user object | 31 | 18 | 13 | **41.9%** |
|
||||||
| 🏷️ User with tags | 48 | 28 | 20 | **41.7%** |
|
| 🏷️ User with tags | 48 | 28 | 20 | **41.7%** |
|
||||||
| 📦 Small product catalog | 117 | 49 | 68 | **58.1%** |
|
| 📦 Small product catalog | 117 | 49 | 68 | **58.1%** |
|
||||||
@@ -31,7 +31,7 @@ AI is becoming cheaper and more accessible, but larger context windows allow for
|
|||||||
| **Total** | **2917** | **1139** | **1778** | **61.0%** |
|
| **Total** | **2917** | **1139** | **1778** | **61.0%** |
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary><strong>View detailed examples</strong></summary>
|
<summary><strong>View detailed results</strong></summary>
|
||||||
|
|
||||||
### 📦 Small product catalog
|
### 📦 Small product catalog
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
| Example | JSON | TOON | Saved | Reduction |
|
| Example | JSON | TOON | Tokens Saved | Reduction |
|
||||||
|---------|------|------|-------|-----------|
|
| ------- | ---- | ---- | ------------ | --------- |
|
||||||
| 👤 Simple user object | 31 | 18 | 13 | **41.9%** |
|
| 👤 Simple user object | 31 | 18 | 13 | **41.9%** |
|
||||||
| 🏷️ User with tags | 48 | 28 | 20 | **41.7%** |
|
| 🏷️ User with tags | 48 | 28 | 20 | **41.7%** |
|
||||||
| 📦 Small product catalog | 117 | 49 | 68 | **58.1%** |
|
| 📦 Small product catalog | 117 | 49 | 68 | **58.1%** |
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
| **Total** | **2917** | **1139** | **1778** | **61.0%** |
|
| **Total** | **2917** | **1139** | **1778** | **61.0%** |
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary><strong>View detailed examples</strong></summary>
|
<summary><strong>View detailed results</strong></summary>
|
||||||
|
|
||||||
### 📦 Small product catalog
|
### 📦 Small product catalog
|
||||||
|
|
||||||
|
|||||||
@@ -192,13 +192,13 @@ ${encodeToon(example.data)}
|
|||||||
.join('\n\n')
|
.join('\n\n')
|
||||||
|
|
||||||
const markdown = `
|
const markdown = `
|
||||||
| Example | JSON | TOON | Saved | Reduction |
|
| Example | JSON | TOON | Tokens Saved | Reduction |
|
||||||
|---------|------|------|-------|-----------|
|
| ------- | ---- | ---- | ------------ | --------- |
|
||||||
${summaryRows}
|
${summaryRows}
|
||||||
| **Total** | **${totalJsonTokens}** | **${totalToonTokens}** | **${totalSavings}** | **${totalSavingsPercent}%** |
|
| **Total** | **${totalJsonTokens}** | **${totalToonTokens}** | **${totalSavings}** | **${totalSavingsPercent}%** |
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary><strong>View detailed examples</strong></summary>
|
<summary><strong>View detailed results</strong></summary>
|
||||||
|
|
||||||
${detailedExamples}
|
${detailedExamples}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user