Skip to content

Commit

Permalink
Show new benchmark.bash in README
Browse files Browse the repository at this point in the history
The old benchmark is in benchmark-builtin.bash.

renamed:    benchmarks-builtin.bash -> benchmark-builtin.bash
renamed:    benchmarks-external.bash -> benchmark.bash
  • Loading branch information
rfjakob committed Jan 23, 2016
1 parent 142ed8b commit e799ae6
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
20 changes: 9 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,17 +82,15 @@ Run `./benchmark.bash` to run the benchmarks.

The output should look like this:

./benchmark.bash
gocryptfs v0.3.1-30-gd69e0df-dirty; on-disk format 2
PASS
BenchmarkStreamWrite-2 100 12246070 ns/op 85.63 MB/s
BenchmarkStreamRead-2 200 9125990 ns/op 114.90 MB/s
BenchmarkCreate0B-2 10000 101284 ns/op
BenchmarkCreate1B-2 10000 178356 ns/op 0.01 MB/s
BenchmarkCreate100B-2 5000 361014 ns/op 0.28 MB/s
BenchmarkCreate4kB-2 5000 375035 ns/op 10.92 MB/s
BenchmarkCreate10kB-2 3000 491071 ns/op 20.85 MB/s
ok github.com/rfjakob/gocryptfs/integration_tests 17.216s
```
$ ./benchmark.bash
linux-3.0.tar.gz 100%[===========================>] 92,20M 2,96MB/s in 35s
2016-01-23 20:08:11 URL:https://www.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.gz [...]
WRITE: 131072000 bytes (131 MB) copied, 1,36225 s, 96,2 MB/s
UNTAR: 23.16
LS: 1.71
RM: 4.36
```

Changelog
---------
Expand Down
3 changes: 3 additions & 0 deletions benchmarks-builtin.bash → benchmark-builtin.bash
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# Run the synthetic benchmarks that are built into gocryptfs using
# "go test".

set -eu

source build.bash
Expand Down
6 changes: 4 additions & 2 deletions benchmarks-external.bash → benchmark.bash
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
#!/bin/bash

# Run the set of "canonical" benchmarks that are shown on
# https://nuetzlich.net/gocryptfs/comparison/

set -eu

TIME="/usr/bin/time -f %e"

# Setup
cd /tmp
wget -q -c https://www.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.gz
wget -nv --show-progress -c https://www.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.gz
DIR1=$(mktemp -d)
DIR2=$(mktemp -d)
gocryptfs -q -init -extpass="echo test" $DIR1
gocryptfs -q -extpass="echo test" $DIR1 $DIR2
cd $DIR2
echo

# Benchmarks
echo -n "WRITE: "
Expand Down

0 comments on commit e799ae6

Please sign in to comment.