Comments (8)
Sounds great. Assigned the issue to you if you want to give it a shot.
HTTP performance have been quite good so far, on my laptop (OS X) I usually run out of file handles before the CPU usage goes above 100% on a single core. But having less CPU usage due to HTTP implementation overhead sounds good.
Regarding memory use, I've seen pretty consistent behaviour where Gotling uses about 8 kb (each goroutine) x number of concurrent "users".
from gotling.
sure, will have a try later
from gotling.
i just pushed the initial implementation with fasthttp on feature/fasthttp
branch.
for now, only GET is supported, i did a quick test, and found that there is performance degradation with fasthttp compared to stdlib net/http.
will dig deeper later to understand why.
below is an example, you can uncomment the client: fasthttp
line to use fasthttp, by default it's using net/http:
---
iterations: 10
users: 10
rampup: 10
actions:
- http:
title: Ping Google
method: GET
# client: fasthttp
url: https://www.google.com
from gotling.
Thanks, awesome work. Did you get the performance issue sorted out?
from gotling.
nope, even i use the lock-free approach for creating request/response object in commit: da3a8d5
i guess there still other lock/sync operation in fasthttp internal, will see.
from gotling.
i'd like to pend this since still fasthttp not perform as fast as net/http.
from gotling.
Ok, good work nevertheless.
from gotling.
Interesting work! :-) I wonder if sharing a single fasthttp client across multiple go-routines would help.
from gotling.
Related Issues (13)
- update README about how to build from source code HOT 3
- Is it possible to run the load test for a given period of time? HOT 4
- Broken builds. HOT 4
- [Question] Open to PRs? HOT 2
- 1000 request/sec example HOT 2
- Getting error HTTP request failed: connect: cannot assign requested address HOT 2
- Gotling opening up new TCP connection for each request HOT 1
- RFC - accept response by ignore the body HOT 2
- RFC - accept xml content HOT 3
- Add support for file-based templates HOT 1
- Example for session sensitive stress test HOT 2
- Host request-header Support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gotling.