Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
libx
· 9y ago · 0 comments
I compared the time it takes to run both scripts, with 10000000 iteration. 1m32s for the Python version and only 29s for the J's.
If an algorithm is parallelizable, does J use all cores of a CPU?
Comments
[–]
ghosthamlet
9y ago
it run fast may be as the optimized j interpreter:
http://code.jsoftware.com/wiki/Guides/AVX
, and indeed J may use all cores of CPU in some situations, you can see:
http://code.jsoftware.com/wiki/User:Devon_McCormick
,
http://code.jsoftware.com/wiki/NYCJUG/2010-03-09#Parallel-Pr...
http://code.jsoftware.com/wiki/NYCJUG/2010-04-14/ExampleConv...
[–]
ghosthamlet
9y ago
Thanks, i didn't know the performance of j is so good. But Sorry, i am not very skilled in J, just a beginner, so have no idea if it use all cores of CPU.