Benchmark Sniffnet performance
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
iperfon a different machine and I could observe that the current packets per second limit is higher than 100k:
Originally discussed in #373
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
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!
Update: performance remains pretty much the same (around about 6 seconds to parse that file) even after #957.
Update: no significant difference in performance even after #992.