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-delta-1.0.1 vendor/bundle/jruby/2.2.0/gems/kramdown-1.12.0/benchmark/benchmark.sh
logstash-filter-base64-1.0.4 vendor/bundle/jruby/2.2.0/gems/kramdown-1.12.0/benchmark/benchmark.sh
logstash-filter-base64-1.0.3 vendor/bundle/jruby/2.2.0/gems/kramdown-1.12.0/benchmark/benchmark.sh
logstash-filter-delta-1.0.0 vendor/bundle/jruby/2.2.0/gems/kramdown-1.12.0/benchmark/benchmark.sh
logstash-filter-base64-1.0.2 vendor/bundle/jruby/2.3.0/gems/kramdown-1.12.0/benchmark/benchmark.sh
logstash-filter-base64-1.0.1 vendor/bundle/jruby/2.3.0/gems/kramdown-1.12.0/benchmark/benchmark.sh
logstash-filter-base64-1.0.0 vendor/bundle/jruby/2.3.0/gems/kramdown-1.12.0/benchmark/benchmark.sh
kramdown-1.12.0 benchmark/benchmark.sh
able-neo4j-1.0.0 vendor/bundle/jruby/1.9/gems/kramdown-1.8.0/benchmark/benchmark.sh
kramdown-1.11.1 benchmark/benchmark.sh
kramdown-1.11.0 benchmark/benchmark.sh
kramdown-1.10.0 benchmark/benchmark.sh
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/kramdown-1.8.0/benchmark/benchmark.sh
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/kramdown-1.8.0/benchmark/benchmark.sh
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/kramdown-1.8.0/benchmark/benchmark.sh
logstash-input-beats-2.0.2 vendor/jruby/1.9/gems/logstash-codec-json-2.0.3/vendor/gems/kramdown-1.9.0/benchmark/benchmark.sh
logstash-input-beats-2.0.2 vendor/jruby/1.9/gems/kramdown-1.9.0/benchmark/benchmark.sh
logstash-codec-json-2.0.3 vendor/gems/kramdown-1.9.0/benchmark/benchmark.sh
logstash-input-beats-0.9.2 vendor/jruby/1.9/gems/kramdown-1.9.0/benchmark/benchmark.sh
logstash-input-beats-0.9.1 vendor/jruby/1.9/gems/kramdown-1.9.0/benchmark/benchmark.sh