Skip to content
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

CLN: ASV attrs_caching benchmark #18441

Merged
merged 1 commit into from
Nov 23, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion asv_bench/benchmarks/attrs_caching.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from .pandas_vb_common import *
import numpy as np
from pandas import DataFrame

try:
from pandas.util import cache_readonly
Expand All @@ -7,9 +8,11 @@


class DataFrameAttributes(object):

goal_time = 0.2

def setup(self):
np.random.seed(1234)
self.df = DataFrame(np.random.randn(10, 6))
self.cur_index = self.df.index

Expand All @@ -21,6 +24,7 @@ def time_set_index(self):


class CacheReadonly(object):

goal_time = 0.2

def setup(self):
Expand Down