-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
inv2004
committed
Sep 6, 2023
1 parent
8b2b70b
commit 216f752
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import ttop/procfs | ||
|
||
import tables | ||
import criterion | ||
|
||
var cfg = newDefaultConfig() | ||
cfg.budget = 1.0 | ||
cfg.minSamples = 10 | ||
|
||
benchmark cfg: | ||
proc jsonSer() {.measure.} = | ||
assert fullInfo().pidsInfo.len > 5 |