
Brad FitzpatrickandBrad Fitzpatrick
36b1b4af2f
wgengine/filter: split local+logging lookups by IPv4-vs-IPv6
If we already know it's an incoming IPv4 packet, no need to match
against the set of IPv6s and vice versa.
goos: darwin
goarch: arm64
pkg: tailscale.com/wgengine/filter
│ before │ after │
│ sec/op │ sec/op vs base │
FilterMatch/not-local-v4-8 21.40n ± 3% 16.04n ± 1% -25.09% (p=0.000 n=10)
FilterMatch/not-local-v6-8 20.75n ± 9% 15.71n ± 0% -24.31% (p=0.000 n=10)
FilterMatch/no-match-v4-8 81.37n ± 1% 78.57n ± 3% -3.43% (p=0.005 n=10)
FilterMatch/no-match-v6-8 77.73n ± 2% 73.71n ± 3% -5.18% (p=0.002 n=10)
FilterMatch/tcp-not-syn-v4-8 21.41n ± 3% 16.86n ± 0% -21.25% (p=0.000 n=10)
FilterMatch/tcp-not-syn-v4-no-logs-8 10.04n ± 0% 10.05n ± 0% ~ (p=0.446 n=10)
geomean 29.07n 25.05n -13.84%
Updates #12486
Change-Id: I70e5024af03893327d26629a994ab2aa9811f4f3
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2024-06-16 10:57:01 -07:00
..
2024-05-07 22:22:10 -07:00
2023-04-17 18:38:24 -04:00
2024-06-16 10:57:01 -07:00
2024-06-05 15:57:27 -07:00
2024-05-02 13:55:05 -04:00
2024-06-13 11:46:48 -07:00
2024-06-14 11:53:56 -07:00
2024-05-17 20:50:19 -07:00
2024-02-28 09:50:18 -08:00
2024-04-16 15:32:38 -07:00
2023-01-27 15:36:29 -08:00
2023-01-27 15:36:29 -08:00
2024-02-26 19:09:12 -08:00
2024-05-07 22:22:10 -07:00
2024-05-07 22:22:10 -07:00
2024-06-04 09:41:13 -07:00
2023-01-27 15:36:29 -08:00
2024-05-07 22:22:10 -07:00
2024-05-06 15:32:22 -07:00
2024-05-06 15:32:22 -07:00