Skip to content

Commit

Permalink
chore: bump version, update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
p4gefau1t committed Feb 28, 2021
1 parent 9ba6d06 commit ff2c082
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "trojan-r"
version = "0.0.1"
version = "0.1.0"
authors = ["Page Fault <[email protected]>"]
edition = "2018"

Expand Down
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,15 @@

牺牲部分灵活性,采用激进的性能优化策略以极力减少不必要的开销。采用[更高效](https://jbp.io/2019/07/01/rustls-vs-openssl-performance.html)`rustls` (相较 openssl)建立 TLS 隧道以提升加解密的性能表现。

使用轻量高效的 smol 异步运行时,使得 `Trojan-R` 拥有小巧的可执行文件,强力的吞吐能力以及极低的内存占用。线程总数可控,默认同时使用所有 CPU 核心。
使用 tokio 异步运行时,允许 `Trojan-R` 同时使用所有 CPU 核心,保证低时延和高效的吞吐能力

> 在 linux/amd64 的开发平台上,均使用 TLS_AES_128_GCM_SHA256 套件,在本地回环进行压力测试,吞吐量较 Trojan-Go 提升约 20%
>
> (还需要更多平台下的,更多维度的,可复现的 benchmark 的反馈)
> 需要更多 benchmark 数据和更多优化
- 低内存占用

Rust 无 GC,内存占用可被预计。简化的握手和连接流程,仅使用极少的堆内存和复制。
Rust 无 GC 机制,内存占用可被预计。简化的握手和连接流程,仅使用极少的堆内存和复制。

> 在 linux/amd64 平台上,10 Gbps 负载下内存占用峰值约为 18 MB。
> 需要更多 benchmark 数据和更多优化
- 简易配置

Expand Down

0 comments on commit ff2c082

Please sign in to comment.