jysperm / leancloud-budget Goto Github PK
View Code? Open in Web Editor NEWLeanCloud QPS/并发 计算器
Home Page: https://budget.leanapp.cn
LeanCloud QPS/并发 计算器
Home Page: https://budget.leanapp.cn
现在计算用的变量包括:
准备改为:
dailyActiveUser
)sessionsPerUserPerDay
)requestsPerSession
)dailyActiveHours
)计算方法:
// LeanCloud 的承诺响应时间
const responseTime = 15
// 每日请求量
const requestsPerDay = dailyActiveUser * sessionsPerDay * requestsPerSession
// QPS
const qps = requestsPerDay / ( dailyActiveHours * 3600 )
// 工作线程
const worker = qps / ( 1000 / responseTime )
更改指标的原因是,相对原来的指标,日活、用户打开次数、用户每次打开请求数这些指标,对用户来讲比较好预估。
另外根据今天讨论,我们似乎是可以通过一个测试 demo 给用户一个响应时间的预期值的?据陈伟的说法看来这个值是 15~25 毫秒?如果是的话那么这个值可以当作一个常量。
@jysperm 你觉得靠谱么
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.