Debian Codegraph @

test/testjbgraph

raw
1 # run timing program to measure Judy1, JudyL and JudyHS performance
2 # use jbgraph script to format output suitable for 'gnuplot'
3 echo
4 echo "This script takes 1 Minute to plot output on a 3.2Ghz Pentium P4C"
5
6 # On Linux, higher resolution of times with -DCPUMHZ=3200 on 3.2Ghz
7 # cc -O2 -DCPUMHZ=3200 Judy1LHTime.c -lJudy -lm -o Judy1LHTime
8
9 # up to 1000000 population of random numbers with Judy1, JudyL, JudyHS
10 ./Judy1LHTime -n 1000000 -1 -L -H > Judy1LHTime.plot
11
12 # Plot the results: y-axis == uSec per Index, x-axis == number of Indexes
13 # -NL == Plot No Log axis
14 # -Lx == Plot Log in x axis
15 # -y:1 == default min scale, 1 microsecond max scale
16 # -x100: == 100 min scale, default max scale
17 # -c6 -c7 -c8 == plot column 6,7,8 (J1T, JLG, JHSG)
18 # Judy1LHTime.plot == file to plot
19 ./jbgraph -NL -Lx -y:1 -x100: -c6 -c7 -c8 Judy1LHTime.plot
20
21 # Performance of other ADT's can be explored with StringCompare.c,
22 # but you should have a very large (>100MB) text file to input.