userver
userver copied to clipboard
Performance comparison with our project
I have created repo with low-level TCP server implementation and tcp-echo sample. Maybe it will be useful https://github.com/szvyagin-gj/unetwork
How to set buffer size and port number? Could you give an example cmd line?
It is configured in config_dev.yaml in tcp-echo-server block
How to set the network buffer size? Our tests are using 512 bytes.
echo_buffer_size: 512 but you need to update code. I added this configuration recently
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find Boost (missing: Boost_INCLUDE_DIR)
# rpm -qa| grep boost
boost-1.66.0-10.el8.x86_64
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find Boost (missing: Boost_INCLUDE_DIR)
# rpm -qa| grep boostboost-1.66.0-10.el8.x86_64
You should install boost-devel package. But I doubt that you will be able to compile userver with default gcc on centos8
We added a full-duplex TCP echo server sample https://userver.tech/de/df7/md_en_userver_tutorial_tcp_full.html
It also has a bunch of metrics and loggings, just remove those if other benchmarks have none of those.
Please share the results when you're done :) Feel free to ask questions here or in https://t.me/userver_en
I only have CentOS machines. As a 10 years experience software engineer I spent a hour modifying your cmake scripts, in order to make the compilation easier, and still failed to build in the end. That makes me very frustrated.
So I give up trying your project. Maybe you can run mine in your environment. I bet it would be easy.
Could you please provide more info on cmake failures?
Closing as inactive