File tree Expand file tree Collapse file tree 3 files changed +22
-5
lines changed Expand file tree Collapse file tree 3 files changed +22
-5
lines changed Original file line number Diff line number Diff line change 21
21
read_csv_standard = Benchmark ("read_csv('__test__.csv')" , setup ,
22
22
start_date = datetime (2011 , 9 , 15 ))
23
23
24
+
25
+ #----------------------------------------------------------------------
26
+ # write_csv
27
+
28
+ setup = common_setup + """
29
+ index = [rands(10) for _ in xrange(10000)]
30
+ df = DataFrame({'float1' : randn(10000),
31
+ 'float2' : randn(10000),
32
+ 'string1' : ['foo'] * 10000,
33
+ 'bool1' : [True] * 10000,
34
+ 'int1' : np.random.randint(0, 100000, size=10000)},
35
+ index=index)
36
+ """
37
+
38
+ write_csv_standard = Benchmark ("df.to_csv('__test__.csv')" , setup ,
39
+ start_date = datetime (2011 , 9 , 15 ))
40
+
Original file line number Diff line number Diff line change 20
20
for bm in benchmarks :
21
21
assert (bm .name is not None )
22
22
23
- REPO_PATH = '/home/wesm /code/pandas'
24
- REPO_URL = 'git@github.com:wesm /pandas.git'
25
- DB_PATH = '/home/wesm /code/pandas/vb_suite/benchmarks.db'
26
- TMP_DIR = '/home/wesm /tmp/vb_pandas'
23
+ REPO_PATH = '/home/adam /code/pandas'
24
+ REPO_URL = 'git@github.com:adamklein /pandas.git'
25
+ DB_PATH = '/home/adam /code/pandas/vb_suite/benchmarks.db'
26
+ TMP_DIR = '/home/adam /tmp/vb_pandas'
27
27
PREPARE = """
28
28
python setup.py clean
29
29
"""
Original file line number Diff line number Diff line change 6
6
from vbench .git import GitRepo
7
7
8
8
9
- REPO_PATH = '/home/wesm /code/pandas'
9
+ REPO_PATH = '/home/adam /code/pandas'
10
10
repo = GitRepo (REPO_PATH )
11
11
12
12
con = sqlite3 .connect ('gb_suite/benchmarks.db' )
You can’t perform that action at this time.
0 commit comments