Skip to content

Commit 6adf44d

Browse files
committed
Merge branch 'master' into put-futures
2 parents b7abc6e + c04e67f commit 6adf44d

22 files changed

+989
-157
lines changed

Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ default = ["web", "b_netsoup"]
1515
profiling = ["timekeeper/default"]
1616

1717
[dependencies]
18+
chrono = "0.3.0"
1819
itertools = "0.5"
1920
petgraph = "0.4"
2021
regex = "0.1"
@@ -100,3 +101,7 @@ path = "benchmarks/vote/vote.rs"
100101
[[bin]]
101102
name = "multitail"
102103
path = "benchmarks/multitail/multitail.rs"
104+
105+
[[bin]]
106+
name = "tpc_w"
107+
path = "benchmarks/tpc_w/tpc_w.rs"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# distributary: a data-flow based database with automatic materialization
22

3-
[![Build Status](https://travis-ci.com/mit-pdos/distributary.svg?token=BSd4zXamztCMoDZRewoH&branch=master)](https://travis-ci.com/mit-pdos/distributary)
3+
[![Build Status](https://travis-ci.org/mit-pdos/distributary.svg?branch=master)](https://travis-ci.org/mit-pdos/distributary)
44

55
This repository provides an implementation of the data storage system
66
model proposed in [Soup](https://pdos.csail.mit.edu/projects/soup.html).
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
#!/bin/bash
2+
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
3+
URL="http://jmob.ow2.org/tpcw/generate.tar.gz"
4+
5+
# default scale factor is 10000
6+
SF_ITEMS=10000
7+
SF_BROWSERS=10000
8+
9+
if [[ $# > 1 ]]; then
10+
SF_ITEMS=$1
11+
SF_BROWSERS=$2
12+
fi
13+
14+
mkdir -p ${DIR}/generate
15+
mkdir -p ${DIR}/data
16+
17+
# download
18+
wget ${URL} -O ${DIR}/generate.tar.gz
19+
cd ${DIR}
20+
tar -xzf generate.tar.gz
21+
cd ${DIR}/generate
22+
23+
# patch & build generator
24+
echo "char *getRandString(char *str, int l, int h);" >> tpcw-spec.h
25+
make clean && make all
26+
27+
CUST=$(expr ${SF_BROWSERS} \* 288)
28+
# generate tables
29+
echo "Generating countries..."
30+
./tpcw -t country > ../data/countries.tsv
31+
echo "Generating authors..."
32+
# authors = 0.25 * ITEM, and for weird reasons must be at least 12
33+
SF_ITEMS_ROUNDED=$(python -c "from math import ceil; print max(12, int(ceil(${SF_ITEMS}*0.25)))")
34+
./tpcw -t author -i ${SF_ITEMS_ROUNDED} > ../data/authors.tsv
35+
echo "Generating customers..."
36+
./tpcw -t customer -c ${CUST} > ../data/customers.tsv
37+
echo "Generating addresses..."
38+
./tpcw -t address -c ${CUST} > ../data/addresses.tsv
39+
echo "Generating orders..."
40+
./tpcw -t orders -c ${CUST} -p ../data > ../data/orders.tsv
41+
echo "Generating items..."
42+
./tpcw -t item -i ${SF_ITEMS} > ../data/items.tsv
43+
44+
# back to old workdir
45+
cd -

0 commit comments

Comments
 (0)