Skip to content

Conversation

@TheTechromancer
Copy link
Collaborator

@TheTechromancer TheTechromancer commented Dec 9, 2025

Before

=== BENCHMARK RESULTS ===
Networks: 100000 (50000 IPv4, 50000 IPv6)
Lookups: 10000

RadixTarget:
  Insert time: 2393.22ms
  Lookup time: 107.66ms
  Operations/sec: 92883
  Hit rate: 100.0%

ip_network_table:
  Insert time: 430.34ms
  Lookup time: 7.49ms
  Operations/sec: 1334260
  Hit rate: 100.0%

Performance comparison (RadixTarget vs ip_network_table):
  Insert: ip_network_table is 5.56x faster
  Lookup: ip_network_table is 14.36x faster

After

=== BENCHMARK RESULTS ===
Networks: 100000 (50000 IPv4, 50000 IPv6)
Lookups: 10000

RadixTarget:
  Insert time: 528.80ms
  Lookup time: 39.90ms
  Operations/sec: 250620
  Hit rate: 100.0%

ip_network_table:
  Insert time: 281.00ms
  Lookup time: 7.77ms
  Operations/sec: 1287706
  Hit rate: 100.0%

Performance comparison (RadixTarget vs ip_network_table):
  Insert: ip_network_table is 1.88x faster
  Lookup: ip_network_table is 5.14x faster

@TheTechromancer TheTechromancer self-assigned this Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants