-
Notifications
You must be signed in to change notification settings - Fork 22
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
need redis protocol example like below #5
Comments
Hi, It looks like there shouldn't be much trouble replacing gnet with Gain. I'll try to do it for you in my spare time |
Here you go, an example of using the Gain framework as a backend for the RedHub library: https://github.com/pawelgaczynski/redhub Not a perfect implementation, but it should be enough to understand how to use Gain. |
cool! will test it out soon and revert with feedback. |
redgain is a bit slower. why? ran the example folder code redis-benchmark -p 6380 -t get,set -n 100000 -q redhub: redgain: |
@pawelgaczynski the version of server in example folder is eating around 10% of cpu core doing nothing. why? |
@kolinfluence please provide the specifications of the host on which you tested it (CPU, Linux, kernel). |
|
Please provide the kernel versions of both machines. You can check it with uname -r command. Did you test redgain by always running the client and server on the same machine? |
@pawelgaczynski sorry for the missed reply i5-4300U i5-2400
|
@pawelgaczynski can u pls clean up your version of redhub repo so i can try again? thx
|
can you please modify this also? |
As io_uring is in active development it is worth using or at least testing performance on the latest possible kernel version. If my spare time permits, I intend to compare gain performance on all official kernel versions from 5.15 upwards.
Yes, it is. Client and server on one machine is hardly a common use case for web applications. If you test on separate machines then please indicate which one was the server.
Done.
I'll have a look at it and let you know. I can't promise if and when I'll be able to do it for you, but I'll try. |
Intel(R) Core(TM) i3-8145U CPU @ 2.10GHz Linux ubuntu-22 5.19.0-43-generic #44~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon May 22 13:39:36 UTC 2 x86_64 x86_64 x86_64 GNU/Linux GOMAXPROCS=1 ./server redgain: using single core performance test. redhub is faster. running redisbenchmark and server on same laptop. |
@pawelgaczynski you dont have to benchmark against all kernel version it has been done here, which obviously says the higher kernel version, the faster io_uring performs |
need redis protocol example like below
https://github.com/IceFireDB/redhub
possible to replace redhub internal networking stuff with gain?
i can sponsor a few coffees for this.
p.s. : i can sponsor more coffees if u can do pub/sub features on it.
i was looking at your project for a long time and it's really amazing for u to have done so far. thank you
The text was updated successfully, but these errors were encountered: