You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: benchmark/README.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,8 @@
2
2
3
3
This benchmark suite demonstrates the **MASSIVE memory and token savings** achieved by using TOON (Token-Oriented Object Notation) compared to JSON for structured data.
4
4
5
+
**NEW:** TOON now supports direct conversion from [Pydantic models](../examples/pydantic_usage.py) with `encode_pydantic()` and `decode_to_pydantic()` functions!
6
+
5
7
## 🚀 HEADLINE RESULTS
6
8
7
9
**Tested across 50 diverse, real-world datasets:**
@@ -116,6 +118,9 @@ pip install -e .
116
118
117
119
# tiktoken is required for token counting
118
120
pip install tiktoken
121
+
122
+
# Pydantic is optional but recommended for model validation
123
+
pip install pydantic
119
124
```
120
125
121
126
### Run All Benchmarks
@@ -301,7 +306,8 @@ All benchmark code is open source and can be reviewed in this directory.
301
306
## 📚 Additional Resources
302
307
303
308
-[TOON Format Specification](https://github.com/toon-format/toon)
304
-
-[Main README](../README.md)
309
+
-[Main README](../README.md) - Includes Pydantic integration documentation
310
+
-[Pydantic Examples](../examples/pydantic_usage.py) - Direct conversion from Pydantic models
0 commit comments