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

feat: Add flag for prepared events #984

Merged
merged 6 commits into from
Sep 7, 2021

Conversation

simar7
Copy link
Member

@simar7 simar7 commented Sep 2, 2021

Adds a new flag --rego-enable-parsed-events which enables parsed events.

benchmark                                                              iter         time/iter    bytes alloc             allocs
---------                                                              ----         ---------    -----------             ------
BenchmarkEngineWithCodeInjectionSignature/rego-8                        100    12760.62 μs/op   5807573 B/op   123602 allocs/op
BenchmarkEngineWithCodeInjectionSignature/rego_+_prepared_events-8      100     8942.85 μs/op   6026101 B/op   112120 allocs/op
BenchmarkEngineWithCodeInjectionSignature/golang-8                      100      991.93 μs/op    441537 B/op     3004 allocs/op
BenchmarkEngineWithCodeInjectionSignature/golang_+_prepared_events-8    100      986.84 μs/op    445371 B/op     3011 allocs/op
BenchmarkEngineWithCodeInjectionSignature/wasm-8                        100    34173.33 μs/op   6380418 B/op   116519 allocs/op
BenchmarkEngineWithCodeInjectionSignature/wasm_+_prepared_events-8      100    32303.88 μs/op   6374508 B/op   116451 allocs/op

Signed-off-by: Simar simar@linux.com

@simar7 simar7 marked this pull request as ready for review September 3, 2021 00:11
@simar7 simar7 self-assigned this Sep 3, 2021
tracee-rules/engine/engine.go Outdated Show resolved Hide resolved
tracee-rules/engine/engine.go Outdated Show resolved Hide resolved
tracee-rules/main.go Outdated Show resolved Hide resolved
Signed-off-by: Simar <simar@linux.com>
Signed-off-by: Simar <simar@linux.com>
Signed-off-by: Simar <simar@linux.com>
Copy link
Contributor

@danielpacak danielpacak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One last comment before we merge this one 🚀

tracee-rules/engine/engine.go Outdated Show resolved Hide resolved
Signed-off-by: Simar <simar@linux.com>
@simar7 simar7 merged commit b475949 into aquasecurity:main Sep 7, 2021
@simar7 simar7 deleted the add-prepared-events branch September 7, 2021 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants