testing hash
This commit is contained in:
Executable
+27
@@ -0,0 +1,27 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
mkdir -p build
|
||||
|
||||
cat > build/config.h <<'EOF'
|
||||
#define HAVE_STDINT_H 1
|
||||
#define HAVE_STRING_H 1
|
||||
#define HAVE_STDLIB_H 1
|
||||
EOF
|
||||
|
||||
cc -O3 -std=c99 -Wall -Wextra -Werror -I. \
|
||||
-c src/joaat/hash.c -o build/joaat.o
|
||||
|
||||
cc -O3 -std=c99 -Wall -Wextra -Werror -I. \
|
||||
-c src/xxHash/xxhash.c -o build/xxhash.o
|
||||
|
||||
g++ -O3 -std=c++17 -Wall -Wextra -Werror \
|
||||
-I. -Ibuild -Isrc/cityhash/src \
|
||||
speed.cpp src/cityhash/src/city.cc build/joaat.o build/xxhash.o \
|
||||
-o build/speed_test
|
||||
|
||||
# Args are passed through to speed_test:
|
||||
# ./build_speed.sh [runs=7] [target_mib_per_run=32] [max_iters=200000]
|
||||
./build/speed_test "$@"
|
||||
Reference in New Issue
Block a user