slinso / goTemplateBenchmark

comparing the performance of different template engines

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How do you run the benchmarks?

lesichkovm opened this issue · comments

What is the command to run the benchmarks?

Tried

./bench.sh

Got

Setting go versions which will be compared with -c or --compare is required

  -t --time  [arg]   Benchmark duration. Required. Default="3s"
  -c --compare [arg] Old go version binary? Required.
  -g --go [arg]      Curenct go version binary? Required. Default="go"
  -B --no-benchmarks Do NOT run the benchmarks.
  -F --no-format     Do NOT format the results.
  -u --update        update dependencies.
  -v                 Enable verbose mode, print script as it is executed
  -d --debug         Enables debug mode
  -h --help          This page

Tried

./bench.sh -O -F
./bench.sh: illegal option -- O

 Invalid use of script: -O -F 

  -t --time  [arg]   Benchmark duration. Required. Default="3s"
  -c --compare [arg] Old go version binary? Required.
  -g --go [arg]      Curenct go version binary? Required. Default="go"
  -B --no-benchmarks Do NOT run the benchmarks.
  -F --no-format     Do NOT format the results.
  -u --update        update dependencies.
  -v                 Enable verbose mode, print script as it is executed
  -d --debug         Enables debug mode
  -h --help          This page

minimal configuration, but does not make sense, as it would compare the same 2
go versions.

./bench.sh -c go

testing your setup - reduce test runtime and assuming you have those two go
binaries on your system.

./bench.sh -t 10ms -c go1.18 -g go1.19

example for a normal benchmark run on my system with the default 3s runtime per
template engine

./bench.sh -c go1.18.6 -g go1.19.1

I have added this to the readme.