Skip to content

sergivb01/packet_toy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pkcap

Testing gopacket for my personal website's backend

Testing benchmarks

Dataset of 10 packets, capture of curl localhost against a default apache http server installation (dataset).

mar 10 may 2022 01:13:41 CEST
goos: linux
goarch: amd64
pkg: pkcap
cpu: AMD Ryzen 7 5800H with Radeon Graphics
BenchmarkDecodePackets-16         360121              3036 ns/op
BenchmarkDecodePackets2-16       1000000              1077 ns/op
BenchmarkDecodePackets3-16        349202              3482 ns/op
PASS
ok      pkcap   47.693s

DecodePackets2 can decode 9,285,051 PPS

mar 10 may 2022 09:36:23 CEST
goos: linux
goarch: amd64
pkg: pkcap
cpu: Intel(R) Core(TM) i5-9600 CPU @ 3.10GHz
BenchmarkDecodePackets-6          666488              1681 ns/op
BenchmarkDecodePackets2-6        3085256               386.6 ns/op
BenchmarkDecodePackets3-6         524146              2115 ns/op
PASS
ok      pkcap   74.244s

DecodePackets2 can decode 25,906,735 PPS

Links:

About

Backend for my website. Currently just a toy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages