3 ms·
> I'm too lazy to figure out how to install and benchmark Julia on my machine. Assuming you're eager to try once you've found out: You should be able to simpl
by celrod 5y ago
> I'm too lazy to figure out how to install and benchmark Julia on my machine.
Assuming you're eager to try once you've found out:
You should be able to simply download and unpack a binary from: https://julialang.org/downloads/ https://julialang.org/downloads/
I'd strongly recommend going with the current stable release (1.6.1).
To start the Julia REPL:
bin/julia
To install packages:
using Pkg
Pkg.add("BenchmarkTools")
Pkg.add("LoopVectorization")
then you can copy/paste code from eigenspaces link to discourse to run Julia benchmarks.
E.g., you can copy/paste from https://discourse.julialang.org/t/i-just-decided-to-migrate-from-python-fortran-to-julia-as-julia-was-faster-in-my-test/61188/19?u=elrod https://discourse.julialang.org/t/i-just-decided-to-migrate-...
if you define
using LoopVectorization
const var"@tvectorize" = var"@tturbo"
(because `@tvectorize` has since been renamed on the latest releases)
- celrod 5y agoAlso, note that Julia starts with only a single thread by default. You'd either need to add `-t4` when starting julia, e.g. `julia -t4`, or set the environmental variable `JULIA_NUM_THREADS=4` for 4 threads, for example.