diff options
author | Adrian Thurston <thurston@colm.net> | 2020-03-08 23:29:57 +0200 |
---|---|---|
committer | Adrian Thurston <thurston@colm.net> | 2020-03-08 23:53:25 +0200 |
commit | 78e7949ca590b273c2c152a0abe0d51e590a52fd (patch) | |
tree | c253c852aec77af8a04c24d921d8657ff29c4101 /test/ragel.d/perftest | |
parent | 5718c319424a21b64e1b50dbb6aae644715b9e85 (diff) | |
download | colm-78e7949ca590b273c2c152a0abe0d51e590a52fd.tar.gz |
remove the ragel tests, export runtests for use by ragel
Diffstat (limited to 'test/ragel.d/perftest')
-rw-r--r-- | test/ragel.d/perftest | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/test/ragel.d/perftest b/test/ragel.d/perftest deleted file mode 100644 index d782bb28..00000000 --- a/test/ragel.d/perftest +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash -# - -set -e - -ragel1=$1 -ragel2=$2 -targ_time=$3 -shift 3 - -cases="$@" -if test -z "$cases"; then - cases="mailbox1 strings1 strings2 rlscan cppscan1" -fi - -CFLAGS="-O3 -Wall -Wno-unused-but-set-variable -Wno-unused-variable" - -tc() -{ - ragel=$1 - compiler=$2 - seconds=$3 - root=$4 - - $ragel -F1 -o $root.cpp $root.rl - $compiler $CFLAGS -DPERF_TEST -I../aapl -DS=${seconds}ll -o $root.bin $root.cpp - ( time ./$root.bin ) 2>&1 | \ - awk '/user/ { split( $2, a, "[ms]" ); printf( "%.3f\n", a[1] * 60 + a[2] ); }' -} - -for c in $cases; do - time1=`tc $ragel1 g++ $targ_time $c` - time2=`tc $ragel2 g++ $targ_time $c` - speedup=`awk "BEGIN { printf( \"%.5f\n\", $time1 / $time2 ); }"` - - echo -e "$c\t$time1 -> $time2\t$speedup" | expand -12,30 -done - |