Skip to content

Commit

Permalink
Added a new benchmark (a 1.14 regression) and a flag setter for bench…
Browse files Browse the repository at this point in the history
…time
  • Loading branch information
dr2chase committed Feb 7, 2020
1 parent deb4444 commit 8d1dbb6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
7 changes: 7 additions & 0 deletions benchmarks-50.toml
Expand Up @@ -2,6 +2,13 @@
# A sample of about 50 different benchmark runs, not noisy, run quickly enough,
# that appear to be somewhat diverse.

[[Benchmarks]]
Name = "klauspost"
Repo = "github.com/dr2chase/benchmarks/klauspost"
Tests = "" # Don't run these tests; they hang, etc.
Benchmarks = "Benchmark"
# Runwrapper = ["benchtime", "10000000x"]

[[Benchmarks]]
Name = "minio"
Repo = "github.com/minio/minio/cmd"
Expand Down
7 changes: 7 additions & 0 deletions benchtime
@@ -0,0 +1,7 @@
#!/bin/bash
# Run args as command, but with a benchtime parameter

bt="$1"
shift

"$@" -test.benchtime="$bt"
2 changes: 1 addition & 1 deletion bent.go
Expand Up @@ -83,7 +83,7 @@ var explicitAll = 0 // Include "-a" on "go test -c" test build ; repeating fla
var shuffle = 2 // Dimensionality of (build) shuffling; 0 = none, 1 = per-benchmark, configuration ordering, 2 = bench, config pairs, 3 = across repetitions.

var copyExes = []string{
"foo", "memprofile", "cpuprofile", "tmpclr", "benchsize", "benchdwarf", "cronjob.sh", "cmpjob.sh", "cmpcl.sh",
"foo", "memprofile", "cpuprofile", "tmpclr", "benchtime", "benchsize", "benchdwarf", "cronjob.sh", "cmpjob.sh", "cmpcl.sh",
}

var copyConfigs = []string{
Expand Down

0 comments on commit 8d1dbb6

Please sign in to comment.