Skip to content

Commit ec4bb40

Browse files
authored
Update CHANGELOG for v0.3.0 release (#166)
1 parent 8eef875 commit ec4bb40

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22

3-
## [[unpublished]](https://github.com/mlange-42/ark/compare/v0.2.0...main)
3+
## [[v0.3.0]](https://github.com/mlange-42/ark/compare/v0.2.0...v0.3.0)
44

55
### Breaking changes
66

benchmark/table/components_batch.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ import (
99

1010
func benchesComponentsBatch() []benchmark.Benchmark {
1111
return []benchmark.Benchmark{
12-
{Name: "Map1.AddBatchFn 1 Comp", Desc: "1000, memory already allocated", F: componentsBatchAdd1_1000, N: 1000},
13-
{Name: "Map5.AddBatchFn 5 Comps", Desc: "1000, memory already allocated", F: componentsBatchAdd5_1000, N: 1000},
14-
{Name: "Map1.AddBatchFn 1 to 5 Comps", Desc: "1000, memory already allocated", F: componentsBatchAdd1to5_1000, N: 1000},
12+
{Name: "Map1.AddBatchFn 1 Comp", Desc: "1000, memory already alloc.", F: componentsBatchAdd1_1000, N: 1000},
13+
{Name: "Map5.AddBatchFn 5 Comps", Desc: "1000, memory already alloc.", F: componentsBatchAdd5_1000, N: 1000},
14+
{Name: "Map1.AddBatchFn 1 to 5 Comps", Desc: "1000, memory already alloc.", F: componentsBatchAdd1to5_1000, N: 1000},
1515

16-
{Name: "Map1.RemoveBatch 1 Comp", Desc: "1000, memory already allocated", F: componentsBatchRemove1_1000, N: 1000},
17-
{Name: "Map5.RemoveBatch 5 Comps", Desc: "1000, memory already allocated", F: componentsBatchRemove5_1000, N: 1000},
18-
{Name: "Map1.RemoveBatch 1 of 5 Comps", Desc: "1000, memory already allocated", F: componentsBatchRemove1of5_1000, N: 1000},
16+
{Name: "Map1.RemoveBatch 1 Comp", Desc: "1000, memory already alloc.", F: componentsBatchRemove1_1000, N: 1000},
17+
{Name: "Map5.RemoveBatch 5 Comps", Desc: "1000, memory already alloc.", F: componentsBatchRemove5_1000, N: 1000},
18+
{Name: "Map1.RemoveBatch 1 of 5 Comps", Desc: "1000, memory already alloc.", F: componentsBatchRemove1of5_1000, N: 1000},
1919

20-
{Name: "Exchange1.ExchangeBatchFn 1 Comp", Desc: "1000, memory already allocated", F: componentsBatchExchange1_1000, N: 1000},
21-
{Name: "Exchange1.ExchangeBatchFn 1 of 5 Comps", Desc: "1000, memory already allocated", F: componentsBatchExchange1of5_1000, N: 1000},
20+
{Name: "Exchange1.ExchangeBatchFn 1 Comp", Desc: "1000, memory already alloc.", F: componentsBatchExchange1_1000, N: 1000},
21+
{Name: "Exchange1.ExchangeBatchFn 1 of 5 Comps", Desc: "1000, memory already alloc.", F: componentsBatchExchange1of5_1000, N: 1000},
2222
}
2323
}
2424

benchmark/table/entities_batch.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import (
99

1010
func benchesEntitiesBatch() []benchmark.Benchmark {
1111
return []benchmark.Benchmark{
12-
{Name: "World.NewEntities", Desc: "1000, memory already allocated", F: entitiesBatchCreate1000, N: 1000},
13-
{Name: "Map1.NewBatchFn w/ 1 Comp", Desc: "1000, memory already allocated", F: entitiesBatchCreate1Comp1000, N: 1000},
14-
{Name: "Map5.NewBatchFn w/ 5 Comps", Desc: "1000, memory already allocated", F: entitiesBatchCreate5Comp1000, N: 1000},
12+
{Name: "World.NewEntities", Desc: "1000, memory already alloc.", F: entitiesBatchCreate1000, N: 1000},
13+
{Name: "Map1.NewBatchFn w/ 1 Comp", Desc: "1000, memory already alloc.", F: entitiesBatchCreate1Comp1000, N: 1000},
14+
{Name: "Map5.NewBatchFn w/ 5 Comps", Desc: "1000, memory already alloc.", F: entitiesBatchCreate5Comp1000, N: 1000},
1515

1616
{Name: "World.RemoveEntities", Desc: "1000", F: entitiesBatchRemove1000, N: 1000},
1717
{Name: "World.RemoveEntities w/ 1 Comp", Desc: "1000", F: entitiesBatchRemove1Comp1000, N: 1000},

benchmark/table/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"github.com/shirou/gopsutil/v4/cpu"
99
)
1010

11-
const version = "v0.3.0-dev"
11+
const version = "v0.3.0"
1212

1313
func main() {
1414
fmt.Printf("Last run: %s \n", time.Now().Format(time.RFC1123))

benchmark/util.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ func RunBenchmarks(title string, benches []Benchmark, format func([]Benchmark) s
3131
func ToMarkdown(benches []Benchmark) string {
3232
b := strings.Builder{}
3333

34-
b.WriteString(fmt.Sprintf("| %-32s | %-12s | %-28s |\n", "Operation", "Time", "Remark"))
35-
b.WriteString(fmt.Sprintf("|%s|%s:|%s|\n", strings.Repeat("-", 34), strings.Repeat("-", 13), strings.Repeat("-", 30)))
34+
b.WriteString(fmt.Sprintf("| %-38s | %-12s | %-28s |\n", "Operation", "Time", "Remark"))
35+
b.WriteString(fmt.Sprintf("|%s|%s:|%s|\n", strings.Repeat("-", 40), strings.Repeat("-", 13), strings.Repeat("-", 30)))
3636

3737
for i := range benches {
3838
bench := &benches[i]
@@ -46,7 +46,7 @@ func ToMarkdown(benches []Benchmark) string {
4646
}
4747

4848
t := fmt.Sprintf("%.1f %s", bench.T*factor, units)
49-
b.WriteString(fmt.Sprintf("| %-32s | %12s | %-28s |\n", bench.Name, t, bench.Desc))
49+
b.WriteString(fmt.Sprintf("| %-38s | %12s | %-28s |\n", bench.Name, t, bench.Desc))
5050
}
5151
b.WriteString("\n")
5252

0 commit comments

Comments
 (0)