Skip to content

Commit

Permalink
completed first pass for generator, rule of thumb sizes, constant tim…
Browse files Browse the repository at this point in the history
…e limit 1s #29
  • Loading branch information
piccolbo committed Apr 27, 2015
1 parent acdc362 commit 5e3deb9
Showing 1 changed file with 9 additions and 16 deletions.
25 changes: 9 additions & 16 deletions pkg/tests/performance.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,18 @@
# See the License for the specific language governing permissions and
# limitations under the License.

for (f in list(ratomic, rcharacter, rDate, rdouble, rfactor, rinteger, rlogical, rnumeric, rraw)) {
test(function(f = f)(assert.time.limit(f(size = ~10^6), 1, 1)))}
for (f in c("ratomic", "rcharacter", "rDate", "rdouble", "rfactor", "rinteger", "rlogical", "rnumeric", "rraw")) {
test(function(f = get(f)) assert.time.limit(f(size = ~10^6), 1, 1), about = f)}

#rnamed
test(forall(x = ratomic(size = ~10^6), assert.time.limit(rnamed(x), 1, 1)), about = "rnamed")

test(forall(x = ratomic(size = ~10^6), assert.time.limit(rnamed(x), 1, 1)))
test(forall(x = ratomic(size = ~10^6), assert.time.limit(rsample(elements = x), 1, 1)), about = "rsample")

#rsample
test(forall(x = ratomic(size = ~10^6), assert.time.limit(rsample)))
for(f in c("rmatrix", "rdata.frame"))
test(function(f = get(f)) assert.time.limit(f(ncol = ~10, nrow = ~10^5), 1, 1), about = f)

test(function() assert.time.limit(rlist(),1,1), sample.size = 1000, about = "rlist")

test(function() assert.time.limit(rany(),1,1), sample.size = 1000, about = "rany")

#rmatrix rdataframe



#rlist


#rany

#rize
test(function() assert.time.limit(rsize(),1,1), sample.size = 1000, about = "rsize")

0 comments on commit 5e3deb9

Please sign in to comment.