fangdeng / battleship Goto Github PK
View Code? Open in Web Editor NEW浏览器客户端信息收集和统计平台
浏览器客户端信息收集和统计平台
防止影响线上应用的访问性能,金刚狼需要有访问连接超时及设置功能
大家可能都有很多疑问,为什么我们不用我们习惯的开发方式,建一个svn仓库,大家像平常开发需求那样开发?为什么我们要使用 github,而不是google code?为什么我们要麻烦地分成公共仓库和私人仓库?还要发个 pull request 让管理员(就是我。。)来把私人仓库的改动同步回到公共仓库?
我不擅长描述清楚概念,但是我尽量把我的想法写出来。
结论:
这样的开发方式也是我们第一次尝试,不过并不是业界的第一次,github自身就是这样的开发方式。希望汲取有益于我们的部分,让我们的开发更顺利
16日用ab对金刚狼进行了压力测试,并发2000总计6000W请求,可惜ab蹦了没拿到结果,但服务器在承受6000W的请求没崩,这也算达到预期。后来做了1000并发+1000W请求的压力测试,其结果为:
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/
Benchmarking 10.20.158.33 (be patient)
Server Software:
Server Hostname: 10.20.158.33
Server Port: 1337
Document Path: /?data=%7B%22taskId%22%3A%2220120329%22%2C%22browser%22%3A%7B%22name%22%3A%22IE%22%2C%22version%22%3A7%2C%22engine%22%3A%22%22%7D%2C%22os%22%3A%7B%22name%22%3A%22windows%22%2C%22version%22%3A7%7D%2C%22language%22%3A%22zh-cn%22%7D
Document Length: 0 bytes
Concurrency Level: 1000
Time taken for tests: 7700.73020 seconds
Complete requests: 10000000
Failed requests: 0
Write errors: 0
Total transferred: 640000000 bytes
HTML transferred: 0 bytes
Requests per second: 1298.69 #/sec
Time per request: 770.007 ms
Time per request: 0.770 [ms](mean, across all concurrent requests)
Transfer rate: 81.17 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 3.6 0 3109
Processing: 46 768 81.4 749 5265
Waiting: 0 563 144.8 562 4874
Total: 46 769 81.5 749 5265
Percentage of the requests served within a certain time (ms)
50% 749
66% 765
75% 781
80% 781
90% 796
95% 828
98% 890
99% 968
100% 5265 (longest request)
从结果看,单位请求处理时间在0.7ms左右,还算不错。
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.