Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TPS 是什么意思? #3

Open
cssmagic opened this issue Jun 14, 2018 · 1 comment
Open

TPS 是什么意思? #3

cssmagic opened this issue Jun 14, 2018 · 1 comment
Labels

Comments

@cssmagic
Copy link
Member

cssmagic commented Jun 14, 2018

概述

TPS 的意思是 “每秒交易数”(Transactions Per Second)。

TPS 越高,可以理解为写入数据的性能越高,从而开发体验和使用体验也随之提升。

我对 TPS 的理解(不一定对)

即使 TPS 达到 2000,也不代表实际的写入速度可以达到 1/2000 秒。

目前主网有 21 个矿工节点,以 15s 为间隔轮流出块。只有出块,交易才算完成,数据才算写入。因此,TPS 的值只是计算结果,完全可以通过单个区块所能包含的最大交易量来拉高。

从实际体验上来说,完成一笔交易通常需要 0~15 秒,看运气;如果遇上交易拥堵,等待时间还有可能加长。因此,在 DApp 开发中往往需要多次轮询,才能得到交易的返回结果。

另外,单个区块所能包含的数据量是有限的,而每个交易所附带的数据(比如部署智能合约)也会占空间,因此每个交易的体积会影响实际的 TPS。

@cssmagic cssmagic added the FAQ label Jun 14, 2018
@cssmagic
Copy link
Member Author

cssmagic commented Sep 3, 2018

其他的交易平台,最差的paypal是每秒100笔量级的,最强的,例如支付宝这种,在双十一的时候可是每秒100000笔量级的。 (via https://zhuanlan.zhihu.com/p/28157297)

星云 1.0 版本……现在的 TPS 在实际测试中是达到了 2400 左右……(via https://mp.weixin.qq.com/s/nn3C9BE9Dai82YNGY1V8_A)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant