-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FIX: Fixed some issues around vb_suite #9332
Conversation
* temporary variable ``bmark`` in groupby was collected as Benchmark * indexing module had same name ('series_getitem_scalar') Benchmarks * VB_DIR pointed wrong directory
was it hanging on something particular? fyi, you can also run with |
@@ -559,3 +559,6 @@ def inject_bmark_into_globals(bmark): | |||
for func_name in no_arg_func_list: | |||
bmark = make_large_ngroups_bmark(ngroups, func_name) | |||
inject_bmark_into_globals(bmark) | |||
|
|||
# avoid bmark to be collected as Benchmark object | |||
del bmark |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
without this fix, I got following error:
$ rm vb_suite/benchmarks.db
$ ./test_perf.sh -b master -t HEAD -r groupby
...
2015-01-22 20:47:50,103 [INFO ] Writing new benchmark groupby_ngroups_100_value_counts, b88a3ca315564ed6afdd935e4d2dc8ad (runner.py:153)
2015-01-22 20:47:50,105 [INFO ] Writing new benchmark groupby_ngroups_10000_value_counts, f7a6e1f815904619a0428842d3fa2ffe (runner.py:153)
2015-01-22 20:47:50,107 [INFO ] Writing new benchmark groupby_ngroups_10000_sum, 973f817c1bd057ddc5476e5af7667ed6 (runner.py:153)
2015-01-22 20:47:50,118 [INFO ] Writing new benchmark groupby_ngroups_10000_value_counts, f7a6e1f815904619a0428842d3fa2ffe (runner.py:153)
...
sqlalchemy.exc.IntegrityError: (IntegrityError) UNIQUE constraint failed: benchmarks.checksum u'INSERT INTO benchmarks (checksum, name, description) VALUES (?, ?, ?)' ('f7a6e1f815904619a0428842d3fa2ffe', 'groupby_ngroups_10000_value_counts', None)
This is because suite
module collects all Benchmark
objects in groupby
module, while temporary variable bmark
presents outside the for loop.
Sorry for mashing up multiple modifications in one pull request. Problems I got are like commented above. As to
thanks. |
bm_getitem = Benchmark(statement, setup, ncalls=100000, | ||
name='series_getitem_scalar') | ||
name='time_series_getitem_scalar') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was same Benchmark name as L220 one. This doesn't cause error, but confusing.
Investigated, and added commit for that. |
FIX: Fixed some issues around vb_suite
@ledmonster thanks! |
I'm new to vb_suite, and ran following command according to this document.
But I got some errors (
InvalidGitRepositoryError
and Benchmark duplication errors), and finally I got tests run by fixing following issues.bmark
in groupby was collected as BenchmarkI'm not so familier with vb_suite, and any feedbacks are welcome ! Thanks.