File tree Expand file tree Collapse file tree 2 files changed +20
-15
lines changed Expand file tree Collapse file tree 2 files changed +20
-15
lines changed Original file line number Diff line number Diff line change @@ -96,21 +96,6 @@ def time_large2(self):
96
96
(self .alarge + self .blarge ) - 2
97
97
98
98
99
- class MA (Benchmark ):
100
- def setup (self ):
101
- self .l100 = range (100 )
102
- self .t100 = ([True ] * 100 )
103
-
104
- def time_masked_array (self ):
105
- np .ma .masked_array ()
106
-
107
- def time_masked_array_l100 (self ):
108
- np .ma .masked_array (self .l100 )
109
-
110
- def time_masked_array_l100_t100 (self ):
111
- np .ma .masked_array (self .l100 , self .t100 )
112
-
113
-
114
99
class CorrConv (Benchmark ):
115
100
params = [[50 , 1000 , 1e5 ],
116
101
[10 , 100 , 1000 , 1e4 ],
Original file line number Diff line number Diff line change
1
+ from __future__ import absolute_import , division , print_function
2
+
3
+ from .common import Benchmark
4
+
5
+ import numpy as np
6
+
7
+
8
+ class MA (Benchmark ):
9
+ def setup (self ):
10
+ self .l100 = range (100 )
11
+ self .t100 = ([True ] * 100 )
12
+
13
+ def time_masked_array (self ):
14
+ np .ma .masked_array ()
15
+
16
+ def time_masked_array_l100 (self ):
17
+ np .ma .masked_array (self .l100 )
18
+
19
+ def time_masked_array_l100_t100 (self ):
20
+ np .ma .masked_array (self .l100 , self .t100 )
You can’t perform that action at this time.
0 commit comments