Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- system.time(simuFunctionSeq(0.03, 0.015, 1, 5, 1000, 100,"/Users/simon/Documents/R/BigMTest"))
- system.time(simuFunctionPar(0.03, 0.015, 1, 5, 1000, 100,"/Users/simon/Documents/R/BigMTest"))
- [1] "Sequential Processing with N = 1000 and K = 100"
- user system elapsed
- 5.157 0.086 5.587
- [1] "Parallel Processing with N = 1000 and K = 100"
- user system elapsed
- 6.069 0.220 3.895
- :> system.time(simuFunctionSeq(0.03, 0.015, 1, 5, 10000, 100,"/Users/simon/Documents/R/BigMTest"))
- system.time(simuFunctionPar(0.03, 0.015, 1, 5, 10000, 100,"/Users/simon/Documents/R/BigMTest"))
- [1] "Sequential Processing with N = 10000 and K = 100"
- user system elapsed
- 8.129 0.689 12.747
- [1] "Parallel Processing with N = 10000 and K = 100"
- user system elapsed
- 8.387 0.772 12.005
- :> system.time(simuFunctionSeq(0.03, 0.015, 1, 5, 10000, 1000,"/Users/simon/Documents/R/BigMTest"))
- system.time(simuFunctionPar(0.03, 0.015, 1, 5, 10000, 1000,"/Users/simon/Documents/R/BigMTest"))
- [1] "Sequential Processing with N = 10000 and K = 1000"
- user system elapsed
- 71.295 6.330 109.656
- [1] "Parallel Processing with N = 10000 and K = 1000"
- user system elapsed
- 50.943 6.347 89.115
- :> system.time(simuFunctionSeq(0.03, 0.015, 1, 5, 100000, 1000,"/Users/simon/Documents/R/BigMTest"))
- system.time(simuFunctionPar(0.03, 0.015, 1, 5, 100000, 1000,"/Users/simon/Documents/R/BigMTest"))
- [1] "Sequential Processing with N = 1e+05 and K = 1000"
- R(578,0xad2032c0) malloc: *** mmap(size=800002048) failed (error code=12)
- *** error: can't allocate region
- *** set a breakpoint in malloc_error_break to debug
- R(578,0xad2032c0) malloc: *** mmap(size=800002048) failed (error code=12)
- *** error: can't allocate region
- *** set a breakpoint in malloc_error_break to debug
- Error in as.big.matrix(apply(apply(trade, 2, diff), 2, rev), backingpath = backingpath, :
- error in evaluating the argument 'x' in selecting a method for function 'as.big.matrix': Error in apply(apply(trade, 2, diff), 2, rev) :
- error in evaluating the argument 'X' in selecting a method for function 'apply': Error: cannot allocate vector of size 762.9 Mb
- Timing stopped at: 16.944 15.807 296.723
Advertisement
Add Comment
Please, Sign In to add comment