Re: [julia-users] Julia code 5x to 30x slower than Matlab code

2015-09-20 Thread Adam
Thanks for the comments! Based on both your comments, I've made the following changes: 1. I eliminated the dictionary structure (I only did this as a matter of organization). There are no longer any dictionaries, and those "parameters" and "distributions" are all now passed directly

Re: [julia-users] Julia code 5x to 30x slower than Matlab code

2015-09-20 Thread Viral Shah
Could you provide the updated code in a github repo than separate files in a gist? Much easier to just clone it and run with the latest changes. The gist still has the Dicts. -viral On Sunday, September 20, 2015 at 12:00:15 PM UTC+5:30, Adam wrote: > > Thanks for the comments! Based on both

Re: [julia-users] Julia code 5x to 30x slower than Matlab code

2015-09-20 Thread Viral Shah
Does Julia 0.4 help reduce the GC time? -viral > On 20-Sep-2015, at 11:13 pm, Kristoffer Carlsson > wrote: > > Did you run the code twice to not time the JIT compiler? > > For me, my version runs in 0.24 and Daniels in 0.34. > > Anyway, adding this to Daniels

Re: [julia-users] Julia code 5x to 30x slower than Matlab code

2015-09-19 Thread Spencer Russell
Hi Adam, Welome to Julia! Just to check - are you calling your `simulation(…)` function before you time it? Otherwise your timing will include the time it takes to compile the function, which happens the first time it’s called with a given set of argument types. Your `param` dict is of type

[julia-users] Julia code 5x to 30x slower than Matlab code

2015-09-19 Thread Adam
Hi, I'm a novice to Julia but have heard promising things and wanted to see if the language can help with a problem I'm working on. I have some Matlab code with some user-defined functions that runs a simulation in about ~1.4 seconds in Matlab (for a certain set of parameters that characterize