> For the complete documentation index, see [llms.txt](https://tarscloud.gitbook.io/tarsdocs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tarscloud.gitbook.io/tarsdocs/tarsgo/performance.md).

# 性能数据

## 测试环境

* 测试机器类型：4 核 /8 线程 CPU 3.3Ghz，16G 内存
* 测试逻辑：客户端将一定数量的数据传输到服务器，然后服务器将其原样返回给客户端。
* 服务器单进程，多个客户端启动工作台。

## 测试结果

| 框架           | TPS(10 byte) | TPS(128 byte) | TPS(256 byte) |
| ------------ | ------------ | ------------- | ------------- |
| TARS(C++)    | 617163       | 390686        | 280637        |
| TARS(JAVA)   | 430725       | 384113        | 279531        |
| TARS(NODEJS) | 158888       | 158139        | 157334        |
| TARS(GO)     | 596795       | 386024        | 276458        |
| TARS(PHP)    | 168745       | 169953        | 168617        |
| Spring Cloud | 160114       | 157010        | 156830        |
| gRPC(C++）    | 89351        | 86132         | 81630         |
| gRPC(GO)     | 106345       | 100599        | 99684         |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://tarscloud.gitbook.io/tarsdocs/tarsgo/performance.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
