Skip to content

Commit

Permalink
Update site/docs/resources/comparison.md
Browse files Browse the repository at this point in the history
Co-authored-by: KnorpelSenf <shtrog@gmail.com>
  • Loading branch information
rojvv and KnorpelSenf authored Jun 16, 2024
1 parent fdb3559 commit e2ce323
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/docs/resources/comparison.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ TypeScript lets you iterate on your code base at incredible speeds.
It is great for rapid prototyping, trying out new things, getting to know bots, and getting things done quickly.
As a rule of thumb, processing ~100,000,000 updates per day can be done easily with TypeScript, but going beyond that will require extra work, such as using one more grammY plugin.

Pick a library written in Go if you already know fairly well what you will be building (you don't expect to need much assistance), and you already know that your bot will process very high numbers of updates.
Pick a library written in Go if you already know fairly well what you will be building (you don't expect to need much assistance), and you already know that your bot will process a very large number of updates.
As a natively compiled language, Go outperforms TypeScript at raw CPU speed by several orders of magnitude.
This is much less relevant when you write a bot because most of the time is spent waiting for the network, but eventually, it will start to matter how fast your bot can parse JSON.
Go can be a better choice in these cases.
Expand Down

0 comments on commit e2ce323

Please sign in to comment.