Skip to content

Commit 00610d8

Browse files
authored
README: update benchmarks
1 parent b423e62 commit 00610d8

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

README.md

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -113,17 +113,17 @@ Check out the [examples](examples) folder for more examples, like [how to genera
113113

114114
Two of the top priorities of this parser are performance and concurrency.
115115

116-
Here are some benchmark results from a system with an Intel i7 2600k CPU and a SSD disk running Windows 10 and a demo with 85'000 frames.
116+
Here are some benchmark results from a system with an Intel i7 6700k CPU and a SSD disk running Windows 10 and a demo with 85'000 frames.
117117

118118
### Overview
119119

120120
|Benchmark|Description|Average Duration|Speed|
121121
|-|-|-|-|
122-
|`BenchmarkConcurrent`|Read and parse 8 demos concurrently|2.84 s (per 8 demos)|~240'000 ticks / s|
123-
|`BenchmarkDemoInfoCs`|Read demo from drive and parse|1.24 s|~68'000 ticks / s
124-
|`BenchmarkInMemory`|Read demo from memory and parse|1.21 s|~70'000 ticks / s
122+
|`BenchmarkConcurrent`|Read and parse 8 demos concurrently|2.06 s (per 8 demos)|~330'000 ticks / s|
123+
|`BenchmarkDemoInfoCs`|Read demo from drive and parse|0.89 s|~95'000 ticks / s
124+
|`BenchmarkInMemory`|Read demo from memory and parse|0.88 s|~96'000 ticks / s
125125

126-
*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.*
126+
*That's almost 1.5 hours of gameplay per second when parsing in parallel (recorded at 64 ticks per second) - or 25 minues per second when only parsing a single demo at a time.*
127127

128128
### Raw output
129129

@@ -132,15 +132,14 @@ $ go test -run _NONE_ -bench . -benchtime 30s -benchmem -concurrentdemos 8
132132
goos: windows
133133
goarch: amd64
134134
pkg: github.com/markus-wa/demoinfocs-golang
135-
BenchmarkDemoInfoCs-8 30 1237133300 ns/op 256055133 B/op 879104 allocs/op
136-
BenchmarkInMemory-8 30 1216333013 ns/op 255900492 B/op 878900 allocs/op
137-
BenchmarkConcurrent-8 20 2840799900 ns/op 2046866843 B/op 7031208 allocs/op
135+
BenchmarkDemoInfoCs-8 50 894500010 ns/op 257610127 B/op 914355 allocs/op
136+
BenchmarkInMemory-8 50 876279984 ns/op 257457271 B/op 914143 allocs/op
137+
BenchmarkConcurrent-8 20 2058303680 ns/op 2059386582 B/op 7313145 allocs/op
138138
--- BENCH: BenchmarkConcurrent-8
139-
demoinfocs_test.go:369: Running concurrency benchmark with 8 demos
140-
demoinfocs_test.go:369: Running concurrency benchmark with 8 demos
141-
demoinfocs_test.go:369: Running concurrency benchmark with 8 demos
139+
demoinfocs_test.go:315: Running concurrency benchmark with 8 demos
140+
demoinfocs_test.go:315: Running concurrency benchmark with 8 demos
142141
PASS
143-
ok github.com/markus-wa/demoinfocs-golang 165.244s
142+
ok github.com/markus-wa/demoinfocs-golang 134.244s
144143
```
145144

146145
## Versioning

0 commit comments

Comments
 (0)