From 1c4ec5fadcec479a371b7a31cda840ef81e43154 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Sun, 10 Dec 2006 11:54:29 +0000 Subject: [PATCH] Added new test which makes variations to ISAM entry size. --- isamb/Makefile.am | 4 ++-- isamb/bench2.plt | 8 ++++++++ isamb/bench2.sh | 11 +++++++++++ 3 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 isamb/bench2.plt create mode 100755 isamb/bench2.sh diff --git a/isamb/Makefile.am b/isamb/Makefile.am index 1624001..05b3e2d 100644 --- a/isamb/Makefile.am +++ b/isamb/Makefile.am @@ -1,11 +1,11 @@ -## $Id: Makefile.am,v 1.14 2006-12-09 08:03:57 adam Exp $ +## $Id: Makefile.am,v 1.15 2006-12-10 11:54:29 adam Exp $ noinst_LTLIBRARIES = libidzebra-isamb.la noinst_PROGRAMS = benchisamb check_PROGRAMS = tstisamb -EXTRA_DIST = bench1.sh bench1.plt +EXTRA_DIST = bench1.sh bench1.plt bench2.sh bench2.plt TESTS = $(check_PROGRAMS) diff --git a/isamb/bench2.plt b/isamb/bench2.plt new file mode 100644 index 0000000..7c62ea2 --- /dev/null +++ b/isamb/bench2.plt @@ -0,0 +1,8 @@ +set terminal postscript eps +set output "bench2.eps" +set xlabel "R" +set ylabel "time" +plot "bench2.0.dat" title "0" with linespoints, \ + "bench2.4.dat" title "4" with linespoints, \ + "bench2.8.dat" title "8" with linespoints, \ + "bench2.12.dat" title "12" with linespoints diff --git a/isamb/bench2.sh b/isamb/bench2.sh new file mode 100755 index 0000000..aba1c4e --- /dev/null +++ b/isamb/bench2.sh @@ -0,0 +1,11 @@ +#!/bin/sh +# $Id: bench2.sh,v 1.1 2006-12-10 11:54:29 adam Exp $ +# Test for variations in size of ISAM entry +CMD="./benchisamb -r 50 -n 1000000 -i 1" + +for sz in 0 4 8 12; do + $CMD -z $sz >bench2.$sz.dat + ls -l *.mf + sleep 2 +done + -- 1.7.10.4