Sign inGet started
Dataset · Hugging Face

JOHNISKING/token-cost-by-programming-language

Token cost by programming language: the same programs in 10 languages on Claude, Gemini and GPT Two small programs (an inventory class and Dijkstra's shortest path) written in Python, Ruby, JavaScript, TypeScript, PHP, Rust, Java, C++, Go and C, with input tokens counted on Claude Opus/Sonnet 5.5, Claude Haiku 4.5, Gemini 3.x and GPT (o200k_base). Headline: both programs together cost 809 GPT tokens in Python and 1,536 in C (+90%). Python and Ruby were the cheapest on every… See the full description on the dataset page: https://huggingface.co/datasets/JOHNISKING/token-cost-by-programming-langu

Author / organizationJOHNISKING
License (as declared)cc-by-4.0
Downloads0 (as reported by Hugging Face)
Likes0
Created18 October 2026
Last updated at source18 October 2026
codeprogramming-languagestokenizerllm-costclaudegeminigpt
Embed this entry
<iframe src="https://silytics.si/embed/item/2a1f1a5a-91c0-4ea8-9b95-9e4446b40db4" width="420" height="190" style="border:0" loading="lazy" title="Silytics entry"></iframe>

Free, no tracking. More about feeds and embeds.

More from JOHNISKING

Silytics shows public metadata from Hugging Face and links to the original. Information may be incomplete or out of date. Last refreshed 18 October 2026. Licenses and terms of the original apply to the work itself. Not financial, legal or professional advice.