add heavy build

This commit is contained in:
2025-12-23 11:00:33 +08:00
parent b95505feca
commit 24ea8bf578
10007 changed files with 310430 additions and 0 deletions

30
dummy/file_02864.go Normal file
View File

@@ -0,0 +1,30 @@
package dummy
import "math"
// Struct2864 is a dummy structure to consume memory during compilation
type Struct2864 struct {
FieldA int
FieldB string
FieldC float64
FieldD []int
FieldE map[string]string
}
// Function2864 performs arbitrary calculations to consume CPU during compilation
func Function2864(input int) float64 {
s := Struct2864{
FieldA: input,
FieldB: "dummy string to take up space in the binary symbol table",
FieldC: float64(input) * 1.5,
FieldD: []int{1, 2, 3, 4, 5},
FieldE: map[string]string{"key": "value"},
}
// Some math operations
res := math.Sqrt(s.FieldC) + float64(s.FieldA)
for _, v := range s.FieldD {
res += float64(v)
}
return res
}