Skip to content

Commit

Permalink
1.0.3 Start message, metrics in MB/s
Browse files Browse the repository at this point in the history
  • Loading branch information
cunnie committed Feb 19, 2018
1 parent 9c38272 commit f2e417d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
54 changes: 27 additions & 27 deletions README.md
Expand Up @@ -20,7 +20,7 @@ following example, we are logged into a Linux box and we download and run the
Linux binary:

```
curl -o gobonniego -L https://github.com/cunnie/gobonniego/releases/download/1.0.2/gobonniego-linux-amd64
curl -o gobonniego -L https://github.com/cunnie/gobonniego/releases/download/1.0.3/gobonniego-linux-amd64
chmod +x gobonniego
./gobonniego
```
Expand All @@ -44,10 +44,10 @@ gobonniego
Typical output:

```
2018/02/17 12:15:29 gobonniego starting. version: 1.0.2, threads: 8, disk space to use (MiB): 1024
Sequential Write MB/s: 428.59
Sequential Read MB/s: 725.12
IOPS: 34922
2018/02/19 12:03:16 gobonniego starting. version: 1.0.3, threads: 8, disk space to use (MiB): 3984
Sequential Write MB/s: 748.22
Sequential Read MB/s: 1025.19
IOPS: 23832
```

Running with the verbose option (`-v`) will print additional timestamped information
Expand All @@ -60,19 +60,19 @@ gobonniego -v
Yields:

```
2018/02/17 12:20:14 gobonniego starting. version: 1.0.2, threads: 8, disk space to use (MiB): 1024
2018/02/17 12:20:14 Number of CPU cores: 8
2018/02/17 12:20:14 Total system RAM (MiB): 1024
2018/02/17 12:20:14 Bonnie working directory: /var/folders/lp/k0g2hcfs0bz1c4zn90pnh32w0000gn/T/gobonniegoParent378702694/gobonniego
2018/02/17 12:20:17 Written (MiB): 1024
2018/02/17 12:20:17 Duration (seconds): 2.258734
Sequential Write MB/s: 475.37
2018/02/17 12:20:17 Read (MiB): 1024
2018/02/17 12:20:17 Duration (seconds): 0.050653
Sequential Read MB/s: 21197.98
2018/02/17 12:20:32 operations 524288
2018/02/17 12:20:32 Duration (seconds): 15.000763
IOPS: 34951
2018/02/19 12:04:14 gobonniego starting. version: 1.0.3, threads: 8, disk space to use (MiB): 3984
2018/02/19 12:04:14 Number of CPU cores: 8
2018/02/19 12:04:14 Total system RAM (MiB): 1992
2018/02/19 12:04:14 Bonnie working directory: /tmp/gobonniegoParent156539821
2018/02/19 12:04:20 Written (MiB): 3984
2018/02/19 12:04:20 Duration (seconds): 5.592828
Sequential Write MB/s: 746.94
2018/02/19 12:04:24 Read (MiB): 3984
2018/02/19 12:04:24 Duration (seconds): 4.213461
Sequential Read MB/s: 991.47
2018/02/19 12:04:39 operations 397532
2018/02/19 12:04:39 Duration (seconds): 15.003075
IOPS: 26497
```

You can specify the placement of `gobonniego`'s test files. This is useful if the
Expand All @@ -97,10 +97,10 @@ gobonniego -threads 8

You may specify the amount of disk space `gobonniego` should use with the `-size` flag
which takes an integer argument (in GiB). This can be used to iterate rapidly while testing.
For example, to constrain `gobonniego` to use only 1 GiB of disk space, type the following:
For example, to constrain `gobonniego` to use 0.5 GiB of disk space, type the following:

```
gobonniego -size 1
gobonniego -size 0.5
```

`-version` will display the current version of `gobonniego`:
Expand All @@ -112,7 +112,7 @@ gobonniego -version
Yields:

```
gobonniego version 1.0.2
gobonniego version 1.0.3
```

`gobonniego -h` will print out the available command line options and their
Expand All @@ -121,14 +121,14 @@ current default values:
```
Usage of ./gobonniego:
-dir string
The directory in which gobonniego places its temp files, should have at least twice system RAM available (default "/var/folders/lp/k0g2hcfs0bz1c4zn90pnh32w0000gn/T/gobonniegoParent228822257")
-size int
The amount of disk space to use (in GiB), defaults to twice the physical RAM (default 128)
The directory in which gobonniego places its temporary files, should have at least '-size' space available (default "/tmp/gobonniegoParent068579451")
-size float
The amount of disk space to use (in GiB), defaults to twice the physical RAM (default 3.890625)
-threads int
The number of concurrent readers/writers, defaults to the number of CPU cores (default 8)
-v Verbose. Will print to stderr diagnostic information such as the amount of RAM, number of cores, etc.
The number of concurrent readers/writers, defaults to the number of CPU cores (default 8)
-v Verbose. Will print to stderr diagnostic information such as the amount of RAM, number of cores, etc.
-version
Version. Will print the current version of gobonniego and then exit
Version. Will print the current version of gobonniego and then exit
```

## Technical Notes
Expand Down
2 changes: 1 addition & 1 deletion gobonniego/gobonniego.go
Expand Up @@ -12,7 +12,7 @@ import (
"runtime"
)

const Version = "1.0.2"
const Version = "1.0.3"

func main() {
var verbose, version bool
Expand Down

0 comments on commit f2e417d

Please sign in to comment.