Sha256: 44fd8890e8b88a326410b3cc8d3fca2a7ea07b7fa0d680ce39be38da90df4cc4

Contents?: true

Size: 1.58 KB

Versions: 70

Compression:

Stored size: 1.58 KB

Contents

#!/bin/bash

source ~/.bashrc

RUBY_VERSIONS=`rvm list strings | sort`
KD_VERSIONS="`git tag | sort -V` master"
OTHERS=false
AVERAGE=1
MASTER_AS=master

while getopts "r:k:o:m:a:" optname; do
    case "$optname" in
        "r")
            RUBY_VERSIONS="$OPTARG"
            ;;
        "k")
            KD_VERSIONS="$OPTARG"
            ;;
        "o")
            OTHERS=true
	    ;;
	"m")
	    MASTER_AS="$OPTARG"
            ;;
	"a")
	    AVERAGE="$OPTARG"
	    ;;
        "?")
            echo "Unknown option $OPTARG"
            exit 1
            ;;
        ":")
            echo "No argument value for option $OPTARG"
            exit 1
            ;;
        *)
            echo "Unknown error while processing options"
            exit 1
            ;;
    esac
done

TMPDIR=/tmp/kramdown-benchmark

rm -rf $TMPDIR
mkdir -p $TMPDIR
cp benchmark/md* $TMPDIR
cp benchmark/generate_data.rb $TMPDIR
git clone .git ${TMPDIR}/kramdown
cd ${TMPDIR}/kramdown

for RUBY_VERSION in $RUBY_VERSIONS; do
	rvm $RUBY_VERSION
	echo "Creating benchmark data for $(ruby -v)"

    for KD_VERSION in $KD_VERSIONS; do
        echo "Using kramdown version $KD_VERSION"
        git co $KD_VERSION 2>/dev/null
        if [ -z $MASTER_AS -o $KD_VERSION != master ]; then
            VNUM=${KD_VERSION}
        else
            VNUM=$MASTER_AS
        fi
        ruby -I${TMPDIR}/kramdown/lib ../generate_data.rb -k ${VNUM} -a ${AVERAGE} >/dev/null
    done

    if [ $OTHERS = "true" ]; then
        ruby -rubygems -I${TMPDIR}/kramdown/lib ../generate_data.rb -o >/dev/null
    fi
done

cd ${TMPDIR}
rvm default
ruby generate_data.rb -g

Version data entries

70 entries across 68 versions & 17 rubygems

Version Path
logstash-filter-csharp-0.2.1 vendor/bundle/jruby/2.3.0/gems/kramdown-1.13.2/benchmark/benchmark.sh
logstash-filter-csharp-0.2.0 vendor/bundle/jruby/2.3.0/gems/kramdown-1.13.2/benchmark/benchmark.sh
logstash-output-icinga-1.1.0 vendor/jruby/2.3.0/gems/kramdown-1.13.2/benchmark/benchmark.sh
logstash-output-icinga-1.1.0 vendor/jruby/1.9/gems/kramdown-1.13.2/benchmark/benchmark.sh
logstash-filter-csharp-0.1.0 vendor/bundle/jruby/2.3.0/gems/kramdown-1.13.2/benchmark/benchmark.sh
logstash-filter-htmlentities-0.1.0 vendor/bundle/jruby/1.9/gems/kramdown-1.13.2/benchmark/benchmark.sh
logstash-output-icinga-1.0.0 vendor/jruby/1.9/gems/kramdown-1.13.2/benchmark/benchmark.sh
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/kramdown-1.13.2/benchmark/benchmark.sh
logstash-filter-zabbix-0.1.2 vendor/bundle/jruby/1.9/gems/kramdown-1.13.2/benchmark/benchmark.sh
logstash-filter-zabbix-0.1.1 vendor/bundle/jruby/1.9/gems/kramdown-1.13.2/benchmark/benchmark.sh
logstash-input-fifo-0.9.1 vendor/bundle/jruby/1.9/gems/kramdown-1.13.2/benchmark/benchmark.sh
logstash-input-fifo-0.9.0 vendor/bundle/jruby/1.9/gems/kramdown-1.13.2/benchmark/benchmark.sh
logstash-input-salesforce-3.0.0 vendor/jruby/1.9/gems/kramdown-1.13.2/benchmark/benchmark.sh
kramdown-1.13.2 benchmark/benchmark.sh
ivanvc-logstash-input-s3-3.1.1.4 vendor/local/gems/kramdown-1.13.1/benchmark/benchmark.sh
ivanvc-logstash-input-s3-3.1.1.3 vendor/local/gems/kramdown-1.13.1/benchmark/benchmark.sh
ivanvc-logstash-input-s3-3.1.1.2 vendor/local/gems/kramdown-1.13.1/benchmark/benchmark.sh
kramdown-1.13.1 benchmark/benchmark.sh
kramdown-1.13.0 benchmark/benchmark.sh
logstash-filter-delta-1.1.0 vendor/bundle/jruby/2.2.0/gems/kramdown-1.12.0/benchmark/benchmark.sh