tksq_benchmark
Benchmark text compression across light, medium, and aggressive levels to compare token reduction by domain and choose suitable settings for your content.
Instructions
Benchmark compression on a text sample across all levels and domains. Shows token reduction for each level (light, medium, aggressive) side by side. Helps choose optimal compression settings for your content.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>"
},
"name": "tksq_benchmark"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The text to benchmark | |
| domain | No | Dictionary domain (default: general) | |
| language | No | Language for compression dictionaries. auto=detect from text (default), en=English, ru=Russian | |
| tokenizer | No | Tokenizer for counting (default: cl100k_base) |