xref: /csrg-svn/lib/libc/db/test/hash.tests/testit (revision 61216)
150987Sbostic#!/bin/csh -f
250987Sbostic#
3*61216Sbostic#	@(#)testit	8.1 (Berkeley) 06/04/93
450987Sbostic#
550987Sbostic
650987Sbosticecho ""
750987Sbosticecho "PAGE FILL "
850987Sbosticset name=WORDS
950987Sbostic	set i = 256
1050987Sbostic	foreach j ( 11 14 21 )
1150987Sbostic	    thash4 $i $j 25000 65536 $name < $name
1250987Sbostic	end
1350987Sbostic	set i = 512
1450987Sbostic	foreach j ( 21 28 43 )
1550987Sbostic	    thash4 $i $j 25000 65536  $name < $name
1650987Sbostic	end
1750987Sbostic	set i = 1024
1850987Sbostic	foreach j ( 43 57 85 )
1950987Sbostic	    thash4 $i $j 25000 65536 $name < $name
2050987Sbostic	end
2150987Sbostic	set i = 2048
2250987Sbostic	foreach j ( 85 114 171 )
2350987Sbostic	    thash4 $i $j 25000 65536 $name < $name
2450987Sbostic	end
2550987Sbostic	set i = 4096
2650987Sbostic	foreach j ( 171 228 341 )
2750987Sbostic	    thash4 $i $j 25000 65536 $name < $name
2850987Sbostic	end
2950987Sbostic	set i = 8192
3050987Sbostic	foreach j ( 341 455 683 )
3150987Sbostic	    thash4 $i $j 25000 65536 $name < $name
3250987Sbostic	end
3350987Sbostic	echo "PAGE FILL "
3450987Sbostic	set i = 256
3550987Sbostic	foreach j ( 11 14 21 )
3650987Sbostic	    echo "$i"_"$j"
3750987Sbostic	    tcreat3 $i $j 25000 $name < $name
3850987Sbostic	    tread2 65536 < $name
3950987Sbostic	    tverify $name < $name
4050987Sbostic	    tseq > /dev/null
4150987Sbostic	    tdel $i $j  $name < $name
4250987Sbostic	end
4350987Sbostic	set i = 512
4450987Sbostic	foreach j ( 21 28 43 )
4550987Sbostic	    echo "$i"_"$j"
4650987Sbostic	    tcreat3 $i $j 25000 $name < $name
4750987Sbostic	    tread2 65536 < $name
4850987Sbostic	    tverify $name < $name
4950987Sbostic	    tseq > /dev/null
5050987Sbostic	    tdel $i $j  $name < $name
5150987Sbostic	end
5250987Sbostic	set i = 1024
5350987Sbostic	foreach j ( 43 57 85 )
5450987Sbostic	    echo "$i"_"$j"
5550987Sbostic	    tcreat3 $i $j 25000 $name < $name
5650987Sbostic	    tread2 65536 < $name
5750987Sbostic	    tverify $name < $name
5850987Sbostic	    tseq > /dev/null
5950987Sbostic	    tdel $i $j  $name < $name
6050987Sbostic	end
6150987Sbostic	set i = 2048
6250987Sbostic	foreach j ( 85 114 171 )
6350987Sbostic	    echo "$i"_"$j"
6450987Sbostic	    tcreat3 $i $j 25000 $name < $name
6550987Sbostic	    tread2 65536 < $name
6650987Sbostic	    tverify $name < $name
6750987Sbostic	    tseq > /dev/null
6850987Sbostic	    tdel $i $j  $name < $name
6950987Sbostic	end
7050987Sbostic	set i = 4096
7150987Sbostic	foreach j ( 171 228 341 )
7250987Sbostic	    echo "$i"_"$j"
7350987Sbostic	    tcreat3 $i $j 25000 $name < $name
7450987Sbostic	    tread2 65536 < $name
7550987Sbostic	    tverify $name < $name
7650987Sbostic	    tseq > /dev/null
7750987Sbostic	    tdel $i $j  $name < $name
7850987Sbostic	end
7950987Sbostic	set i = 8192
8050987Sbostic	foreach j ( 341 455 683 )
8150987Sbostic	    echo "$i"_"$j"
8250987Sbostic	    tcreat3 $i $j 25000 $name < $name
8350987Sbostic	    tread2 65536 < $name
8450987Sbostic	    tverify $name < $name
8550987Sbostic	    tseq > /dev/null
8650987Sbostic	    tdel $i $j  $name < $name
8750987Sbostic	end
8850987Sbosticset name=LONG.DATA
8950987Sbostic	set i = 1024
9050987Sbostic	foreach j ( 1 2 4 )
9150987Sbostic	    echo thash4 $i $j 600 65536 $name
9250987Sbostic	    thash4 $i $j 600 65536 $name < $name
9350987Sbostic	end
9450987Sbostic
9550987Sbostic	set i = 2048
9650987Sbostic	foreach j ( 1 2 4 )
9750987Sbostic	    echo thash4 $i $j 600 65536 $name
9850987Sbostic	    thash4 $i $j 600 65536 $name < $name
9950987Sbostic	end
10050987Sbostic	set i = 4096
10150987Sbostic	foreach j ( 1 2 4 )
10250987Sbostic	    echo thash4 $i $j 600 65536 $name
10350987Sbostic	    thash4 $i $j 600 65536 $name < $name
10450987Sbostic	end
10550987Sbostic	set i = 8192
10650987Sbostic	foreach j ( 2 4 8 )
10750987Sbostic	    echo thash4 $i $j 600 65536 $name
10850987Sbostic	    thash4 $i $j 600 65536 $name < $name
10950987Sbostic	end
11050987Sbostic	echo "PAGE FILL "
11150987Sbostic	set i = 1024
11250987Sbostic	foreach j ( 1 2 4 )
11350987Sbostic	    echo "$i"_"$j"
11450987Sbostic	    tcreat3 $i $j 600 $name < $name
11550987Sbostic	    tread2 65536 < $name
11650987Sbostic	    tverify $name < $name
11750987Sbostic	    tseq > /dev/null
11850987Sbostic	    tdel $i $j  $name < $name
11950987Sbostic	end
12050987Sbostic	set i = 2048
12150987Sbostic	foreach j ( 1 2 4 )
12250987Sbostic	    echo "$i"_"$j"
12350987Sbostic	    tcreat3 $i $j 600 $name < $name
12450987Sbostic	    tread2 65536 < $name
12550987Sbostic	    tverify $name < $name
12650987Sbostic	    tseq > /dev/null
12750987Sbostic	    tdel $i $j  $name < $name
12850987Sbostic	end
12950987Sbostic	set i = 4096
13050987Sbostic	foreach j ( 1 2 4 )
13150987Sbostic	    echo "$i"_"$j"
13250987Sbostic	    tcreat3 $i $j 600 $name < $name
13350987Sbostic	    tread2 65536 < $name
13450987Sbostic	    tverify $name < $name
13550987Sbostic	    tseq > /dev/null
13650987Sbostic	    tdel $i $j  $name < $name
13750987Sbostic	end
13850987Sbostic	set i = 8192
13950987Sbostic	foreach j ( 2 4 8 )
14050987Sbostic	    echo "$i"_"$j"
14150987Sbostic	    tcreat3 $i $j 600 $name < $name
14250987Sbostic	    tread2 65536 < $name
14350987Sbostic	    tverify $name < $name
14450987Sbostic	    tseq > /dev/null
14550987Sbostic	    tdel $i $j  $name < $name
14650987Sbostic	end
14750987Sbosticdriver2
148