File: test.sh

package info (click to toggle)
simhash 0.0.20090101-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 92 kB
  • ctags: 61
  • sloc: ansic: 540; makefile: 17; sh: 12
file content (20 lines) | stat: -rw-r--r-- 497 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
# Copyright (c) 2005-2007 Bart Massey
# ALL RIGHTS RESERVED
# Please see the file COPYING in this directory for license information.

# create filese named a and b that you want to compare, then
# use this script to try various hash sizes

SIZES="64 256 1024 4096 8192"
for j in $SIZES; do
  for i in a b ; do
    ./simhash -f $j -s 4 $i > $i-$j.sim
  done
done
for i in $SIZES; do
  for j in $SIZES; do
    echo -n `./simhash -c a-$i.sim b-$j.sim 2>/dev/null` ' '
  done
  echo ''
done