mirror of
https://github.com/Bodigrim/tasty-bench.git
synced 2024-10-03 19:57:10 +03:00
Explain what GC numbers mean
This commit is contained in:
parent
df493e4332
commit
db8fbc7a5f
22
README.md
22
README.md
@ -227,8 +227,26 @@ All
|
||||
All 3 tests passed (7.25s)
|
||||
```
|
||||
|
||||
This data is reported as per `RTSStats` fields: `allocated_bytes`, `copied_bytes`
|
||||
and `max_mem_in_use_bytes`.
|
||||
This data is reported as per [`GHC.Stats.RTSStats`](https://hackage.haskell.org/package/base/docs/GHC-Stats.html#t:RTSStats) fields:
|
||||
|
||||
* `allocated_bytes`
|
||||
|
||||
Total size of data ever allocated since the start
|
||||
of the benchmark iteration. Even if data was immediately
|
||||
garbage collected and freed, it still counts.
|
||||
|
||||
* `copied_bytes`
|
||||
|
||||
Total size of data ever copied by GC (because it was alive and kicking)
|
||||
since the start of the benchmark iteration. Note that zero bytes often mean
|
||||
that the benchmark was too short to trigger GC at all.
|
||||
|
||||
* `max_mem_in_use_bytes`
|
||||
|
||||
Peak size of live data since the very start of the process.
|
||||
This is a global metric, it cumulatively grows and does not say much
|
||||
about individual benchmarks, but rather characterizes heap
|
||||
environment in which they are executed.
|
||||
|
||||
## Combining tests and benchmarks
|
||||
|
||||
|
@ -204,8 +204,29 @@ report memory usage:
|
||||
>
|
||||
> All 3 tests passed (7.25s)
|
||||
|
||||
This data is reported as per 'RTSStats' fields: 'allocated_bytes',
|
||||
'copied_bytes' and 'max_mem_in_use_bytes'.
|
||||
This data is reported as per
|
||||
<https://hackage.haskell.org/package/base/docs/GHC-Stats.html#t:RTSStats GHC.Stats.RTSStats>
|
||||
fields:
|
||||
|
||||
- 'allocated_bytes'
|
||||
|
||||
Total size of data ever allocated since the start of the benchmark
|
||||
iteration. Even if data was immediately garbage collected and freed,
|
||||
it still counts.
|
||||
|
||||
- 'copied_bytes'
|
||||
|
||||
Total size of data ever copied by GC (because it was alive and
|
||||
kicking) since the start of the benchmark iteration. Note that zero
|
||||
bytes often mean that the benchmark was too short to trigger GC at
|
||||
all.
|
||||
|
||||
- 'max_mem_in_use_bytes'
|
||||
|
||||
Peak size of live data since the very start of the process. This is
|
||||
a global metric, it cumulatively grows and does not say much about
|
||||
individual benchmarks, but rather characterizes heap environment in
|
||||
which they are executed.
|
||||
|
||||
=== Combining tests and benchmarks
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user