2022-02-13 21:22:51 -05:00
|
|
|
---
|
|
|
|
title: benchmark
|
|
|
|
layout: command
|
2022-03-04 20:10:09 +08:00
|
|
|
version: 0.59.1
|
2022-02-13 21:22:51 -05:00
|
|
|
---
|
2021-05-30 12:57:04 +12:00
|
|
|
|
2022-02-13 21:22:51 -05:00
|
|
|
Time the running time of a block
|
2021-05-30 12:57:04 +12:00
|
|
|
|
2022-02-13 21:22:51 -05:00
|
|
|
## Signature
|
2021-05-30 12:57:04 +12:00
|
|
|
|
2022-02-13 21:22:51 -05:00
|
|
|
```> benchmark (block)```
|
2021-05-30 12:57:04 +12:00
|
|
|
|
2022-02-13 21:22:51 -05:00
|
|
|
## Parameters
|
2021-05-30 12:57:04 +12:00
|
|
|
|
2022-02-13 21:22:51 -05:00
|
|
|
- `block`: the block to run
|
2021-05-30 12:57:04 +12:00
|
|
|
|
2022-02-20 09:13:33 +08:00
|
|
|
## Examples
|
|
|
|
|
|
|
|
Benchmarks a command within a block
|
|
|
|
```shell
|
|
|
|
> benchmark { sleep 500ms }
|
|
|
|
```
|