Skip to content

Commit

Permalink
chore(go): bump Go to 1.24
Browse files Browse the repository at this point in the history
Upgrading to Go 1.24 brings performance improvements due to the new
Swiss Tables hash map implementation. With the same
deterministic/intensive proctree stress test, it was observed
significant reductions in CPU usage, heap memory, and object allocation.

Performance comparison:

| Metric       | Go 1.22.3 | Go 1.24.0 | Improvement |
|--------------|----------:|----------:|------------:|
| CPU avg      | 17.7%     | 13.5%     | -23.73%     |
| Heap avg     | 211MB     | 176MB     | -16.59%     |
| Heap obj avg | 1,156,562 | 730,153   | -36.86%     |

More details: https://go.dev/doc/go1.24
  • Loading branch information
geyslan committed Feb 20, 2025
1 parent c13ff71 commit 45d1e3a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
4 changes: 3 additions & 1 deletion api/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/aquasecurity/tracee/api

go 1.22.0
go 1.24

toolchain go1.24.0

require (
google.golang.org/grpc v1.69.4
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module github.com/aquasecurity/tracee

go 1.22.0
go 1.24

toolchain go1.22.4
toolchain go1.24.0

require (
github.com/IBM/fluent-forward-go v0.2.2
Expand Down
4 changes: 2 additions & 2 deletions signatures/helpers/go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module github.com/aquasecurity/tracee/signatures/helpers

go 1.22.0
go 1.24

toolchain go1.22.4
toolchain go1.24.0

require github.com/aquasecurity/tracee/types v0.0.0-20241008181102-d40bc1f81863

Expand Down
4 changes: 3 additions & 1 deletion types/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/aquasecurity/tracee/types

go 1.22.0
go 1.24

toolchain go1.24.0

require github.com/stretchr/testify v1.10.0

Expand Down

0 comments on commit 45d1e3a

Please sign in to comment.