Add a benchmark using Kristin Y. Rozier's LTLcounter scripts.
* bench/ltlcounter/README, bench/ltlcounter/run, bench/ltlcounter/plot.gnu, bench/ltlcounter/defs.in, bench/ltlcounter/Makefile.am: New files. * bench/Makefile.am (SUBDIRS): Add ltlcounter. * configure.ac (AC_CONFIG_FILES): Adjust. * THANKS: Add her.
This commit is contained in:
parent
e539226e13
commit
3ce1627251
10 changed files with 184 additions and 3 deletions
55
bench/ltlcounter/run
Executable file
55
bench/ltlcounter/run
Executable file
|
|
@ -0,0 +1,55 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Copyright (C) 2009 Laboratoire de Recherche et Développement de
|
||||
# l'EPITA (LRDE)
|
||||
#
|
||||
# This file is part of Spot, a model checking library.
|
||||
#
|
||||
# Spot is free software; you can redistribute it and/or modify it
|
||||
# under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# Spot is distributed in the hope that it will be useful, but WITHOUT
|
||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
|
||||
# License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with Spot; see the file COPYING. If not, write to the Free
|
||||
# Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
||||
# 02111-1307, USA.
|
||||
|
||||
. ./defs
|
||||
|
||||
lcdir=$srcdir/../../src/tgbatest/ltlcounter
|
||||
|
||||
echo "# Benching ltl2tgba_fm..."
|
||||
echo "# the following values are also saved to file 'results.fm'"
|
||||
echo "# time1 = translation time"
|
||||
echo "# time2 = exploration time"
|
||||
echo "# n, states, transitions, user time1, system time1, wall time2, user time1, system time2, wall time2"
|
||||
for n in 1 2 3 4 5 6 7 8 9 10 11 12 13; do
|
||||
$LTL2TGBA -T -k -f "`$lcdir/LTLcounterLinear.pl $n`" >out 2>&1
|
||||
states=`sed -n 's/^states: \([0-9]*\)$/\1/p' out`
|
||||
transitions=`sed -n 's/^transitions: \([0-9]*\)$/\1/p' out`
|
||||
time=`sed -n 's/ *translating formula *| *\([0-9]*\) .*| *\([0-9]*\) .*| *\([0-9]*\) .*|.*/\1,\2,\3/p' out`
|
||||
time2=`sed -n 's/ *producing output *| *\([0-9]*\) .*| *\([0-9]*\) .*| *\([0-9]*\) .*|.*/\1,\2,\3/p' out`
|
||||
echo $n,$states,$transitions,$time,$time2
|
||||
done | tee results.fm
|
||||
|
||||
echo "# Benching ltl2tgba_lacim..."
|
||||
echo "# the following values are also saved to file 'results.lacim'"
|
||||
echo "# time1 = translation time"
|
||||
echo "# time2 = exploration time"
|
||||
echo "# n, states, transitions, user time1, system time1, wall time2, user time1, system time2, wall time2"
|
||||
for n in 1 2 3 4 5 6 7; do
|
||||
$LTL2TGBA -T -k "`$lcdir/LTLcounterLinear.pl $n`" >out 2>&1
|
||||
states=`sed -n 's/^states: \([0-9]*\)$/\1/p' out`
|
||||
transitions=`sed -n 's/^transitions: \([0-9]*\)$/\1/p' out`
|
||||
time=`sed -n 's/ *translating formula *| *\([0-9]*\) .*| *\([0-9]*\) .*| *\([0-9]*\) .*|.*/\1,\2,\3/p' out`
|
||||
time2=`sed -n 's/ *producing output *| *\([0-9]*\) .*| *\([0-9]*\) .*| *\([0-9]*\) .*|.*/\1,\2,\3/p' out`
|
||||
echo $n,$states,$transitions,$time,$time2
|
||||
done | tee results.lacim
|
||||
|
||||
echo "# now run 'gnuplot plot.gnu'"
|
||||
Loading…
Add table
Add a link
Reference in a new issue