Skip to content

Commit 8d9f249

Browse files
authored
README: update benchmarks
1 parent 2069cca commit 8d9f249

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

README.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,11 @@ Here are some benchmark results from a system with a Intel i7 2600k CPU and SSD
121121

122122
|Benchmark|Description|Average Duration|Speed|
123123
|-|-|-|-|
124-
|`BenchmarkConcurrent`|Read and parse 8 demos concurrently|2.90 s (per 8 demos)|~234'000 ticks / s|
125-
|`BenchmarkDemoInfoCs`|Read demo from drive and parse|1.39 s|~61'000 ticks / s
126-
|`BenchmarkInMemory`|Read demo from memory and parse|1.38 s|~61'000 ticks / s
124+
|`BenchmarkConcurrent`|Read and parse 8 demos concurrently|2.84 s (per 8 demos)|~240'000 ticks / s|
125+
|`BenchmarkDemoInfoCs`|Read demo from drive and parse|1.24 s|~68'000 ticks / s
126+
|`BenchmarkInMemory`|Read demo from memory and parse|1.21 s|~70'000 ticks / s
127+
128+
*That's about 1h of gameplay per second when parsing in parallel (recorded at 64 ticks per second) - or 18 minues per second when only parsing a single demo at a time.*
127129

128130
### Raw output
129131

@@ -132,14 +134,15 @@ $ go test -run _NONE_ -bench . -benchtime 30s -benchmem -concurrentdemos 8
132134
goos: windows
133135
goarch: amd64
134136
pkg: github.com/markus-wa/demoinfocs-golang
135-
BenchmarkDemoInfoCs-8 30 1397398190 ns/op 162254528 B/op 839779 allocs/op
136-
BenchmarkInMemory-8 30 1384877250 ns/op 162109924 B/op 839628 allocs/op
137-
BenchmarkConcurrent-8 20 2902574295 ns/op 1297042534 B/op 6717163 allocs/op
137+
BenchmarkDemoInfoCs-8 30 1237133300 ns/op 256055133 B/op 879104 allocs/op
138+
BenchmarkInMemory-8 30 1216333013 ns/op 255900492 B/op 878900 allocs/op
139+
BenchmarkConcurrent-8 20 2840799900 ns/op 2046866843 B/op 7031208 allocs/op
138140
--- BENCH: BenchmarkConcurrent-8
139-
demoinfocs_test.go:425: Running concurrency benchmark with 8 demos
140-
demoinfocs_test.go:425: Running concurrency benchmark with 8 demos
141+
demoinfocs_test.go:369: Running concurrency benchmark with 8 demos
142+
demoinfocs_test.go:369: Running concurrency benchmark with 8 demos
143+
demoinfocs_test.go:369: Running concurrency benchmark with 8 demos
141144
PASS
142-
ok github.com/markus-wa/demoinfocs-golang 147.800s
145+
ok github.com/markus-wa/demoinfocs-golang 165.244s
143146
```
144147

145148
## Versioning

0 commit comments

Comments
 (0)