Skip to content

Instantly share code, notes, and snippets.

@under-Peter
under-Peter / julia_bench.jl
Created March 29, 2020 20:06 — forked from tastyminerals/julia_bench.jl
Julia benchmarks
using BenchmarkTools
using Random
using LinearAlgebra
BenchmarkTools.DEFAULT_PARAMETERS.evals = 20
# define arrays and matrices
rows, cols = 500, 600
reduceRows, reduceCols = Int(rows / 5), Int(cols / 6)