sys_perform: sys_perform

View source: R/sys_perform.R

sys_performR Documentation

sys_perform

Description

This function returns the time it takes to run the following: a big matrix multiplication, a loop without pre-allocated mem, a loop with pre-allocated memory, and writing a csv to file. As I am not a computer scientist, I have no idea if these test are meaningful. Just things I do a lot and wanted to see if they work faster on different machines.

Usage

sys_perform(n = 10, cores = 1, file = NULL)

Arguments

n

numeric value indicating the number of times to run the test. Default is 10

file

Character string for file (and path) of output file to write results to

Examples

## Not run: 
#Following example will write to a shared file on ORD_public
#Linux
#You will need sudo rights and mount ORD_Public, like:
# $sudo mkdir /mnt/ord_public
# $sudo mount //V2626UMCEC501.aa.ad.epa.gov/ORD_Public$ -o username=aa\YOURUSERNAME,
#            sec=ntlmsspi,uid=YOURUSERNAME /mnt/ord_public

#Linux Example then is
sys_perform(file='/mnt/ord_public/jhollist/R/epa_r_sys_performance.csv')

#Windows

#No need to map, the following should work
sys_perform(file='//aa.ad.epa.gov/ORD/ORD/DATA/Public/jhollist/R/epa_r_sys_performance.csv')

## End(Not run)

jhollist/miscPackage documentation built on March 3, 2024, 9:23 p.m.