userver icon indicating copy to clipboard operation
userver copied to clipboard

Performance comparison with our project

Open beef9999 opened this issue 3 years ago • 8 comments

Do you have a tcp echo server that I can run with? So I can add the figures into this list.

beef9999 avatar Aug 01 '22 06:08 beef9999

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

szvyagin-gj avatar Aug 01 '22 09:08 szvyagin-gj

How to set buffer size and port number? Could you give an example cmd line?

beef9999 avatar Aug 01 '22 10:08 beef9999

It is configured in config_dev.yaml in tcp-echo-server block

szvyagin-gj avatar Aug 01 '22 10:08 szvyagin-gj

How to set the network buffer size? Our tests are using 512 bytes.

beef9999 avatar Aug 01 '22 10:08 beef9999

echo_buffer_size: 512 but you need to update code. I added this configuration recently

szvyagin-gj avatar Aug 01 '22 10:08 szvyagin-gj

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

beef9999 avatar Aug 01 '22 10:08 beef9999

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

You should install boost-devel package. But I doubt that you will be able to compile userver with default gcc on centos8

szvyagin-gj avatar Aug 01 '22 10:08 szvyagin-gj

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

apolukhin avatar Aug 30 '22 10:08 apolukhin

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.

beef9999 avatar Sep 25 '22 15:09 beef9999

Could you please provide more info on cmake failures?

apolukhin avatar Oct 25 '22 12:10 apolukhin

Closing as inactive

apolukhin avatar Jan 19 '23 09:01 apolukhin