Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transform rust 7229 v7 #12061

Closed
wants to merge 4 commits into from

Conversation

catenacyber
Copy link
Contributor

Link to ticket: https://redmine.openinfosecfoundation.org/issues/
https://redmine.openinfosecfoundation.org/issues/7229

Describe changes:

  • transforms: move strip_whitespace and compress_whitespace and dot_prefix to rust

Should we do all transforms ?

#12054 with hashes transforms done right (using disable-hashing)

Benchmark
./src/suricata -r bigf.pcapng -S bigf.rules -c bigf.yaml -k none -l log --runmode single
with big.rules being alert tcp any any -> any any (file.data; strip_whitespace; content:"hasxspace"; sid:1;) and bigf.pcapng being a capture of http1 download of 28 Mbyte file SV datasets-1m-StringSets/datasets.csv and bigf.yaml having all kinds of options for profiling

with PR

  Date: 10/10/2024 -- 11:10:46
  --------------------------------------------------------------------------------------------------------------------------------
  Stats for: total
  --------------------------------------------------------------------------------------------------------------------------------
  Prefilter                        Ticks           Called          Max Ticks       Avg             Bytes           Called          Max Bytes       Avg Bytes       Ticks/Byte     
  -------------------------------- --------------- --------------- --------------- --------------- --------------- --------------- --------------- --------------- --------------- 
  file_data#179 (strip_whitespace  77389980        119             2075940         650335.00       28534678        116             266949          245988.00       2.00      

With master

  Stats for: total
  --------------------------------------------------------------------------------------------------------------------------------
  Prefilter                        Ticks           Called          Max Ticks       Avg             Bytes           Called          Max Bytes       Avg Bytes       Ticks/Byte     
  -------------------------------- --------------- --------------- --------------- --------------- --------------- --------------- --------------- --------------- --------------- 
  file_data#179 (strip_whitespace  81533120        119             1905360         685152.00       28499770        116             266647          245687.00       2.00           

So 77389980 vs 81533120 does not seem significant for a difference

Copy link

codecov bot commented Oct 29, 2024

Codecov Report

Attention: Patch coverage is 92.38579% with 30 lines in your changes missing coverage. Please review.

Project coverage is 83.39%. Comparing base (3a7eef8) to head (4905bba).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #12061      +/-   ##
==========================================
- Coverage   83.42%   83.39%   -0.04%     
==========================================
  Files         910      908       -2     
  Lines      257642   257614      -28     
==========================================
- Hits       214949   214843     -106     
- Misses      42693    42771      +78     
Flag Coverage Δ
fuzzcorpus 61.56% <89.47%> (-0.08%) ⬇️
livemode 19.41% <33.22%> (+<0.01%) ⬆️
pcap 44.47% <44.40%> (-0.02%) ⬇️
suricata-verify 62.79% <88.15%> (+0.03%) ⬆️
unittests 59.30% <59.89%> (-0.07%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

@suricata-qa
Copy link

WARNING:

field baseline test %
SURI_TLPW2_autofp_stats_chk
.flow.end.tcp_state.established 8 9 112.5%

Pipeline 23205

@catenacyber
Copy link
Contributor Author

Next in #12065

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants