From 188c5e71f50e17f6e804cf6bf1aa840b3f9367a6 Mon Sep 17 00:00:00 2001 From: Brian Cunnie Date: Thu, 12 Apr 2018 07:16:30 -0700 Subject: [PATCH] 1.0.9 `-seconds` flag sets duration of benchmark --- README.md | 10 +++++----- bench/bench.go | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index d447323..d514072 100644 --- a/README.md +++ b/README.md @@ -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.8/gobonniego-linux-amd64 +curl -o gobonniego -L https://github.com/cunnie/gobonniego/releases/download/1.0.9/gobonniego-linux-amd64 chmod +x gobonniego ./gobonniego ``` @@ -44,7 +44,7 @@ gobonniego Typical output: ``` -2018/04/12 06:20:09 gobonniego starting. version: 1.0.8, runs: 1, seconds: 0, threads: 4, disk space to use (MiB): 512 +2018/04/12 06:20:09 gobonniego starting. version: 1.0.9, runs: 1, seconds: 0, threads: 4, disk space to use (MiB): 512 Sequential Write MB/s: 748.22 Sequential Read MB/s: 1025.19 IOPS: 23832 @@ -60,7 +60,7 @@ gobonniego -v Yields: ``` -2018/04/12 06:20:09 gobonniego starting. version: 1.0.8, runs: 1, seconds: 0, threads: 4, disk space to use (MiB): 512 +2018/04/12 06:20:09 gobonniego starting. version: 1.0.9, runs: 1, seconds: 0, threads: 4, disk space to use (MiB): 512 2018/02/24 17:20:20 Number of CPU cores: 8 2018/02/24 17:20:20 Total system RAM (MiB): 65536 2018/02/24 17:20:20 Bonnie working directory: /var/folders/lp/k0g2hcfs0bz1c4zn90pnh32w0000gn/T/gobonniegoParent337382325 @@ -134,7 +134,7 @@ Yields: ```json { - "version": "1.0.8", + "version": "1.0.9", "start_time": "2018-04-12T06:46:00.274348275-07:00", "gobonniego_directory": "/var/folders/zp/vmj1nyzj6p567k5syt3hvq3h0000gn/T/gobonniegoParent456127644/gobonniego", "disk_space_used_gib": 0.5, @@ -193,7 +193,7 @@ gobonniego -version Yields: ``` -gobonniego version 1.0.8 +gobonniego version 1.0.9 ``` `gobonniego -h` will print out the available command line options and their diff --git a/bench/bench.go b/bench/bench.go index 38a5e00..b15ccc4 100644 --- a/bench/bench.go +++ b/bench/bench.go @@ -14,7 +14,7 @@ import ( "time" ) -const Version = "1.0.8" +const Version = "1.0.9" const Blocksize = 0x1 << 16 // 65,536 bytes, 2^16 bytes // bench.Mark{} -- haha! Get it? "benchmark"!