Skip to content

Instantly share code, notes, and snippets.

View bufferx's full-sized avatar

ZY bufferx

View GitHub Profile
@bufferx
bufferx / toredis_pool_test.py
Created April 23, 2014 19:03
toredis connection pool test
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2014 Zhang ZY<http://github.com/bufferx>
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
@bufferx
bufferx / hbm.conf
Last active August 29, 2015 13:57
Http Server Benchmarking tool based on Tornado
#config
http_hosts={
'localhost:8800': {'w':1,'cc':0,'sc':0},
'localhost:8801': {'w':1,'cc':0,'sc':0},
}
http_method='POST'
post_file='post.data'
conn_timeout=5.0
request_timeout=5.0
clients=3
@bufferx
bufferx / httpd_detector.py
Created November 30, 2013 05:30
Http Server Detector Base On Tornado, such as AsyncHttpClient, IOLoop.callback..
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2013 Zhang ZY<http://idupx.blogspot.com/>
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
@bufferx
bufferx / async_pipelined_requests_demo.py
Last active December 16, 2015 20:39
Async Pipelined HTTP Requests Based On Tornado.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2012 Zhang ZY<http://idupx.blogspot.com/>
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0