Commit c38f40fd authored by John Esmet's avatar John Esmet Committed by Yoni Fogel

close[t:4955] loadsome isn't needed

git-svn-id: file:///svn/toku/tokudb@44074 c7de825b-a66e-492c-adef-691d508d4ae1
parent d9067ce1
CFLAGS = -W -Wall -O2
serial.%.50K: makedata-serial
./makedata-serial $(patsubst serial.%.50K, %, $@) 50000 > $@
serial.%.300K: makedata-serial
./makedata-serial $(patsubst serial.%.300K, %, $@) 300000 > $@
random.1.300K:
./makedata-random 1000 600000 1 > random.1.300K
random.2.300K:
./makedata-random 1000 900000 2 > random.2.300K
random.9.300K:
./makedata-random 1000 3000000 9 > random.9.300K
random.19.300K:
./makedata-random 1000 6000000 19 > random.19.300K
/* -*- mode: C; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: expandtab:ts=8:sw=4:softtabstop=4:
#ident "Copyright (c) 2007, 2008 Tokutek Inc. All rights reserved."
#include <stdlib.h>
#include <stdio.h>
#include <toku_assert.h>
#include <errno.h>
long long parsell (char *s) {
char *end;
errno=0;
long long r = strtoll(s, &end, 10);
assert(*end==0 && end!=s && errno==0);
return r;
}
int main (int argc, char *const argv[]) {
long long i;
assert(argc==4);
long long count=parsell(argv[1]);
long long range=100*parsell(argv[2]);
long long seed =parsell(argv[3]);
srandom(seed);
for (i=0; i<count; i++) {
printf("%lld\t%ld\n", (random()%range), random());
}
return 0;
}
/* -*- mode: C; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: expandtab:ts=8:sw=4:softtabstop=4:
#ident "Copyright (c) 2007, 2008 Tokutek Inc. All rights reserved."
#include <stdlib.h>
#include <stdio.h>
#include <toku_assert.h>
#include <errno.h>
long long parsell (char *s) {
char *end;
errno=0;
long long r = strtoll(s, &end, 10);
assert(*end==0 && end!=s && errno==0);
return r;
}
int main (int argc, char *const argv[]) {
long long i;
assert(argc==3);
long long lo=parsell(argv[1]);
long long count=parsell(argv[2]);
for (i=lo*count; count>0; i++, count--) {
printf("%lld\t%d\n", i*100, random());
}
return 0;
}
/* -*- mode: C; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: expandtab:ts=8:sw=4:softtabstop=4:
#ident "Copyright (c) 2007, 2008 Tokutek Inc. All rights reserved."
#include <stdlib.h>
#include <stdio.h>
int main (int argc, char *const argv[]) {
int i;
for (i=0; i<1000; i++) {
printf("%d\t%d\n", random(), random());
}
return 0;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment