sniffnet icon indicating copy to clipboard operation
sniffnet copied to clipboard

Benchmark Sniffnet performance

Open GyulyVGC opened this issue 1 year ago • 3 comments

This issue wants to track the need for a benchmark to accurately measure the speed of the app, measured in packets per second (pps) that can be handled without dropping frames.

This is necessary to find out ways that can help improving the performance even further.

Today I tried testing Sniffnet with iperf on a different machine and I could observe that the current packets per second limit is higher than 100k:

Screenshot 2024-01-09 at 12 26 24

Originally discussed in #373

GyulyVGC avatar Mar 30 '24 17:03 GyulyVGC

Since the introduction of PCAP files import in version 1.4, we now have a more reliable and stable way of assessing the app performance without relying on Internet connectivity and network adapter speed limits. It's in fact enough to import a large PCAP file and divide the total number of parsed packets by the time it takes to parse the file to obtain an accurate packet per second rate.

An example of this is shown in this blog post.


Update: and this is a video showing the same file of the blog post parsed by another computer of mine running a Debian distribution on a VM.

https://github.com/user-attachments/assets/6fcb62fd-c68c-42cd-a7db-ea99af522e52

This mini PC is way faster than the PC I used for the blog post video.

PC & VM details

Beelink SER7 Mini-PC, Ryzen 7 7840HS (8C/16T, up to 5.1GHz) Mini Computer, AMD Radeon 780M, 32GB DDR5+1TB SSD Micro Desktop, Mini Gaming PC 4K Quad Displays HDMI+DP+Dual USB4, 2.5Gbps LAN, WiFi 6

Image

As you can see it processes 2.6 million packets in just about 6 seconds, reaching a mad rate of more than 400k packets per second!

GyulyVGC avatar Jul 11 '25 22:07 GyulyVGC

Update: performance remains pretty much the same (around about 6 seconds to parse that file) even after #957.

GyulyVGC avatar Sep 09 '25 08:09 GyulyVGC

Update: no significant difference in performance even after #992.

GyulyVGC avatar Nov 03 '25 15:11 GyulyVGC