# \#benchmark

**URL:** https://discourse.julialang.org/tag/benchmark/160.md?page=2

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

**Page:** 3

---

## [Benchmark function that uses CUDA.jl](https://discourse.julialang.org/t/benchmark-function-that-uses-cuda-jl/71093)

<div class="topic-metadata">

**Author:** [@UndefinedBehavior](https://discourse.julialang.org/u/UndefinedBehavior)\
**Replies:** 2\
**Last updated:** [November 7, 2021, 5:34pm UTC](https://discourse.julialang.org/t/benchmark-function-that-uses-cuda-jl/71093 "2021-11-07T17:34:56Z")

</div>

Hello all, I have created a function that computes the eigenvalues of large sparse matrices. I have implemented it both on CPU and GPU. I used CUDA.jl for portions of code that were computationally expensive. Now, I wan…

---

## [Tweaking @btime](https://discourse.julialang.org/t/tweaking-btime/70090)

<div class="topic-metadata">

**Author:** [@Giulio\_Benedetti](https://discourse.julialang.org/u/Giulio_Benedetti)\
**Replies:** 8\
**Last updated:** [October 22, 2021, 9:34am UTC](https://discourse.julialang.org/t/tweaking-btime/70090 "2021-10-22T09:34:08Z")

</div>

Hello! The docs of the macro ‘@btime’ says: The printed time is the minimum elapsed time measured during the benchmark. Is there a way to make the macro ‘@btime’ print the mean execution time instead of the minimum? …

---

## [Parallel and distributed very slow](https://discourse.julialang.org/t/parallel-and-distributed-very-slow/69735)

<div class="topic-metadata">

**Author:** [@Ludovic\_Dumoulin](https://discourse.julialang.org/u/Ludovic_Dumoulin)\
**Replies:** 6\
**Last updated:** [October 14, 2021, 12:36pm UTC](https://discourse.julialang.org/t/parallel-and-distributed-very-slow/69735 "2021-10-14T12:36:20Z")

</div>

Hi ! I am trying to learn how to distribute or use parellel computing on CPU, I don’t understand why, it is slower that a sequential for… As I really do not understand why, I ask for your help, thank you using Benchmar…

---

## [@time a module](https://discourse.julialang.org/t/time-a-module/69121)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 1\
**Last updated:** [October 2, 2021, 11:51pm UTC](https://discourse.julialang.org/t/time-a-module/69121 "2021-10-02T23:51:21Z")

</div>

I want to know how long it takes to run a module. julia\> @time module Foo; x = 1 end ERROR: syntax: "module" expression not at top level How can I do that?

---

## [First post - what am I doing wrong - distributed benchmark show no improvement](https://discourse.julialang.org/t/first-post-what-am-i-doing-wrong-distributed-benchmark-show-no-improvement/68567)

<div class="topic-metadata">

**Author:** [@Behemot](https://discourse.julialang.org/u/Behemot)\
**Replies:** 2\
**Last updated:** [September 22, 2021, 5:08am UTC](https://discourse.julialang.org/t/first-post-what-am-i-doing-wrong-distributed-benchmark-show-no-improvement/68567 "2021-09-22T05:08:01Z")

</div>

Howdy - this is my first foray into Julia so I started with Gary Feierbach “Learning Julia 1.0” O’Reilly video. I am on Julia 1.5 (installed a while ago but never started). And on Win10 machine. After first lecture I w…

---

## [Julia Beginner (from Python): Numba outperforms Julia in rewrite. Any tips to improve performance?](https://discourse.julialang.org/t/julia-beginner-from-python-numba-outperforms-julia-in-rewrite-any-tips-to-improve-performance/66414)

<div class="topic-metadata">

**Author:** [@rmeinl](https://discourse.julialang.org/u/rmeinl)\
**Replies:** 56\
**Last updated:** [August 18, 2021, 12:00am UTC](https://discourse.julialang.org/t/julia-beginner-from-python-numba-outperforms-julia-in-rewrite-any-tips-to-improve-performance/66414 "2021-08-18T00:00:28Z")

</div>

Hey! I’m new to Julia (coming from Python) and was trying to benchmark Julia against a part of the apricot python package (submodular optimization). Unfortunately the Python version (using numba) is still a bit faster (1…

---

## [Why is this raytracer slow?](https://discourse.julialang.org/t/why-is-this-raytracer-slow/59176)

<div class="topic-metadata">

**Author:** [@linwaytin](https://discourse.julialang.org/u/linwaytin)\
**Replies:** 29\
**Last updated:** [May 5, 2021, 3:11pm UTC](https://discourse.julialang.org/t/why-is-this-raytracer-slow/59176 "2021-05-05T15:11:17Z")

</div>

I bumped into this repo. https://github.com/edin/raytracer It compares implementations in different languages. I’m surprised that julia is more than 5 times slower than C. The code seems idiomatic. Does anyone have s…

---

## [Benchmark parts of a function?](https://discourse.julialang.org/t/benchmark-parts-of-a-function/63844)

<div class="topic-metadata">

**Author:** [@eduardovrs](https://discourse.julialang.org/u/eduardovrs)\
**Replies:** 3\
**Last updated:** [June 30, 2021, 7:37pm UTC](https://discourse.julialang.org/t/benchmark-parts-of-a-function/63844 "2021-06-30T19:37:21Z")

</div>

Hello everyone, I am trying to benchmark the operations inside a function to have an idea where would be best to focus to try to optimize, and at the moment I do something similar to: function foo() a = @btime rand…

---

## [Understanding major order performance when broadcasting in column vs row operations](https://discourse.julialang.org/t/understanding-major-order-performance-when-broadcasting-in-column-vs-row-operations/63139)

<div class="topic-metadata">

**Author:** [@gzagatti](https://discourse.julialang.org/u/gzagatti)\
**Replies:** 9\
**Last updated:** [June 21, 2021, 3:07am UTC](https://discourse.julialang.org/t/understanding-major-order-performance-when-broadcasting-in-column-vs-row-operations/63139 "2021-06-21T03:07:54Z")

</div>

I understand that Julia stores arrays in column-major order which means that columns are stacked onto one another. Thus, adjacent rows in the same column are adjacent in memory. If that is the case, I am failing to see …

---

## [Generate structured problem matrices](https://discourse.julialang.org/t/generate-structured-problem-matrices/62688)

<div class="topic-metadata">

**Author:** [@matthiasbe](https://discourse.julialang.org/u/matthiasbe)\
**Replies:** 1\
**Last updated:** [June 10, 2021, 11:07pm UTC](https://discourse.julialang.org/t/generate-structured-problem-matrices/62688 "2021-06-10T23:07:04Z")

</div>

Hello, I am studying the low rank approximations of matrices, for example by truncated the Singular Value Decomposition of a matrix. In order to test any algorithm, I need some test matrices that have internal structur…

---

## [Weird @btime results with \`sin\`](https://discourse.julialang.org/t/weird-btime-results-with-sin/61644)

<div class="topic-metadata">

**Author:** [@cryptic.ax](https://discourse.julialang.org/u/cryptic.ax)\
**Replies:** 1\
**Last updated:** [May 22, 2021, 4:23pm UTC](https://discourse.julialang.org/t/weird-btime-results-with-sin/61644 "2021-05-22T16:23:44Z")

</div>

I was profiling timing differences between using sin, sind, and I noticed some interesting results. julia\> using BenchmarkTools julia\> sin(10); julia\> sind(10); julia\> const ° = π/180; julia\> x = 1.234; julia\> @bti…

---

## [Julia vs SciPy - Performance comparison and benchmark help](https://discourse.julialang.org/t/julia-vs-scipy-performance-comparison-and-benchmark-help/59758)

<div class="topic-metadata">

**Author:** [@miguelraz](https://discourse.julialang.org/u/miguelraz)\
**Replies:** 15\
**Last updated:** [April 22, 2021, 6:35am UTC](https://discourse.julialang.org/t/julia-vs-scipy-performance-comparison-and-benchmark-help/59758 "2021-04-22T06:35:10Z")

</div>

Hello all! I’m dusting off a one-function package I made a while ago, but I want to confirm that the benchmarks are honest. There’s some calls to scipy objects, and I would like to know if I’m measuring any sort of unfa…

---

## [Unrolled loop results in Improbable @benchmark timing](https://discourse.julialang.org/t/unrolled-loop-results-in-improbable-benchmark-timing/56637)

<div class="topic-metadata">

**Author:** [@pixel27](https://discourse.julialang.org/u/pixel27)\
**Replies:** 6\
**Last updated:** [March 7, 2021, 2:18pm UTC](https://discourse.julialang.org/t/unrolled-loop-results-in-improbable-benchmark-timing/56637 "2021-03-07T14:18:30Z")

</div>

The TLDR is why would I get improbably timings when benchmarking passing in by reference i.e. $c but get maybe reasonable timings when passing in the value i.e. ‘c’. And how much can I trust the timing passing in the va…

---

## [Idiomatic Benchmarking](https://discourse.julialang.org/t/idiomatic-benchmarking/56286)

<div class="topic-metadata">

**Author:** [@mileslucas](https://discourse.julialang.org/u/mileslucas)\
**Replies:** 6\
**Last updated:** [March 2, 2021, 6:12am UTC](https://discourse.julialang.org/t/idiomatic-benchmarking/56286 "2021-03-02T06:12:03Z")

</div>

I feel like every time I write a benchmark for a package I’m reinventing the wheel, with slight changes in how I list dependencies, how I organize the actual benchmarks, how I collect results, and how I end up displaying…

---

## [Update on single dispatch benchmark comparison to C++](https://discourse.julialang.org/t/update-on-single-dispatch-benchmark-comparison-to-c/7283)

<div class="topic-metadata">

**Author:** [@cdsousa](https://discourse.julialang.org/u/cdsousa)\
**Replies:** 19\
**Last updated:** [February 13, 2021, 5:47pm UTC](https://discourse.julialang.org/t/update-on-single-dispatch-benchmark-comparison-to-c/7283 "2021-02-13T17:47:39Z")

</div>

Hi, I’m making an update of the benchmarks I had ran back in 2015, comparing the performance of Julia dispatch on single argument against C++ dispatch: Redirecting to Google Groups The code is in here: https://github.c…

---

## [TechEmpower/FrameworkBenchmarks R20 deadline 12/28 + first julia "JSON serialization" results](https://discourse.julialang.org/t/techempower-frameworkbenchmarks-r20-deadline-12-28-first-julia-json-serialization-results/51936)

<div class="topic-metadata">

**Author:** [@ImreSamu](https://discourse.julialang.org/u/ImreSamu)\
**Replies:** 11\
**Last updated:** [February 8, 2021, 6:27pm UTC](https://discourse.julialang.org/t/techempower-frameworkbenchmarks-r20-deadline-12-28-first-julia-json-serialization-results/51936 "2021-02-08T18:27:54Z")

</div>

TLDR: Techempower Framework benchmarks is a collaborative, open web framework benchmarking project The next release: Round 20 "Last day for PR review is 12/28. " First Julia results ( “http.jl” ) … current “rank: 149…

---

## [Using @benchmark in a for loop with a dictionary](https://discourse.julialang.org/t/using-benchmark-in-a-for-loop-with-a-dictionary/53780)

<div class="topic-metadata">

**Author:** [@Aje12](https://discourse.julialang.org/u/Aje12)\
**Replies:** 2\
**Last updated:** [January 23, 2021, 9:05pm UTC](https://discourse.julialang.org/t/using-benchmark-in-a-for-loop-with-a-dictionary/53780 "2021-01-23T21:05:01Z")

</div>

Hi all, I am pretty new to Julia and I am trying to use the @benchmark macro to benchmark the PageRank algorithm on multiple graphs which are stored in a dictionary. The aim is to store the graphs in the dictionary then…

---

## [Benchmarking with @time @btime and subsequent runs return shorter execution time](https://discourse.julialang.org/t/benchmarking-with-time-btime-and-subsequent-runs-return-shorter-execution-time/52580)

<div class="topic-metadata">

**Author:** [@neo\_abs](https://discourse.julialang.org/u/neo_abs)\
**Replies:** 8\
**Last updated:** [December 31, 2020, 10:33am UTC](https://discourse.julialang.org/t/benchmarking-with-time-btime-and-subsequent-runs-return-shorter-execution-time/52580 "2020-12-31T10:33:20Z")

</div>

I am using @time and @btime macros to determine how my function preforms on different number of threads. I am mostly interested not in specific time but relative values. Threads aside, I noticed that the more times I ru…

---

## [Julia Binary Heap Benchmark](https://discourse.julialang.org/t/julia-binary-heap-benchmark/51945)

<div class="topic-metadata">

**Author:** [@ndrsh](https://discourse.julialang.org/u/ndrsh)\
**Replies:** 12\
**Last updated:** [December 17, 2020, 10:25am UTC](https://discourse.julialang.org/t/julia-binary-heap-benchmark/51945 "2020-12-17T10:25:26Z")

</div>

Hey Community. Seems like it might be possible that Julia gets adopted at Codeforces. In order to make that happen I need to provide an implementation for this Binary Heap benchmark. My Julia code is quite ugly, becaus…

---

## [Benchmarks of Various Formats for Tabular Data](https://discourse.julialang.org/t/benchmarks-of-various-formats-for-tabular-data/50489)

<div class="topic-metadata">

**Author:** [@lungben](https://discourse.julialang.org/u/lungben)\
**Replies:** 1\
**Last updated:** [November 21, 2020, 4:14am UTC](https://discourse.julialang.org/t/benchmarks-of-various-formats-for-tabular-data/50489 "2020-11-21T04:14:38Z")

</div>

Hi, here is a Pluto.jl notebook for benchmarking of the read and write performance, as well as file sizes of various formats for tabular data. The following formats / packages are compared: CSV via GitHub - JuliaDa…

---

## [A blog post involving Julia](https://discourse.julialang.org/t/a-blog-post-involving-julia/48809)

<div class="topic-metadata">

**Author:** [@stla](https://discourse.julialang.org/u/stla)\
**Replies:** 15\
**Last updated:** [October 23, 2020, 9:25am UTC](https://discourse.julialang.org/t/a-blog-post-involving-julia/48809 "2020-10-23T09:25:39Z")

</div>

Hello, I’ve just blogged a post involving Julia. It compares the speed of the same algorithm in C++, Haskell, and Julia. Haskell won vs Julia 1.2.0, but now it is beaten by Julia 1.5.2. Cheers.

---

## [Benchmarking a function with side effects](https://discourse.julialang.org/t/benchmarking-a-function-with-side-effects/48531)

<div class="topic-metadata">

**Author:** [@singularitti](https://discourse.julialang.org/u/singularitti)\
**Replies:** 2\
**Last updated:** [October 17, 2020, 4:59am UTC](https://discourse.julialang.org/t/benchmarking-a-function-with-side-effects/48531 "2020-10-17T04:59:52Z")

</div>

I want to compare push!ing an element to an Array with push!!ing an element to a Tuple using BenchmarkTools.jl and BangBang.jl: julia\> using BenchmarkTools, BangBang julia\> a = 1:20 |\> collect; julia\> b = Tuple(a); j…

---

## [Error while using @time on a Multi-threaded Julia function!](https://discourse.julialang.org/t/error-while-using-time-on-a-multi-threaded-julia-function/41189)

<div class="topic-metadata">

**Author:** [@Saad\_Mahmud](https://discourse.julialang.org/u/Saad_Mahmud)\
**Replies:** 9\
**Last updated:** [June 12, 2020, 12:51am UTC](https://discourse.julialang.org/t/error-while-using-time-on-a-multi-threaded-julia-function/41189 "2020-06-12T00:51:05Z")

</div>

I am trying to time a Julia function and inside that function, I am using Multiple threads. Example of the code is given below: function function1(input) @threads for i in 1:N #does something with the input end end for…

---

## [\[RFC-ANN\] SystemBenchmark.jl](https://discourse.julialang.org/t/rfc-ann-systembenchmark-jl/38982)

<div class="topic-metadata">

**Author:** [@ianshmean](https://discourse.julialang.org/u/ianshmean)\
**Replies:** 45\
**Last updated:** [May 28, 2020, 8:00pm UTC](https://discourse.julialang.org/t/rfc-ann-systembenchmark-jl/38982 "2020-05-28T20:00:33Z")

</div>

In trying to get to the bottom of slow performance on some resource-limited systems, I started up SystemBenchmark.jl for running a quick series of basic representative tests on a system to quantify performance across a f…

---

## [lhe/Biofast benchmark | FASTQ parsing \[Julia,Nim,Crystal,Python,...\]](https://discourse.julialang.org/t/lhe-biofast-benchmark-fastq-parsing-julia-nim-crystal-python/39747)

<div class="topic-metadata">

**Author:** [@ImreSamu](https://discourse.julialang.org/u/ImreSamu)\
**Replies:** 54\
**Last updated:** [May 25, 2020, 8:17pm UTC](https://discourse.julialang.org/t/lhe-biofast-benchmark-fastq-parsing-julia-nim-crystal-python/39747 "2020-05-25T20:17:43Z")

</div>

from the community news: " Biofast is a small benchmark for evaluating the performance of programming languages and implementations on a few common tasks in the field of Bioinformatics. It currently includes two benchma…

---

## [Assembler length vs speed (backslash- and inverse-operator)](https://discourse.julialang.org/t/assembler-length-vs-speed-backslash-and-inverse-operator/39149)

<div class="topic-metadata">

**Author:** [@EuklidAlexandria](https://discourse.julialang.org/u/EuklidAlexandria)\
**Replies:** 2\
**Last updated:** [May 9, 2020, 12:42am UTC](https://discourse.julialang.org/t/assembler-length-vs-speed-backslash-and-inverse-operator/39149 "2020-05-09T00:42:33Z")

</div>

I have noticed that Julia produces much shorter assembly for the \\-operator in contrast to inv(A). Here are the two functions: foo(A,b) = inv(A) \* b bar(A,b) = A\\b As expected, for A=\[1.0 2.0 4.4; 4.0 3.3 53.5; 34.0 3…

---

## [PkgBenchmark.jl workflow](https://discourse.julialang.org/t/pkgbenchmark-jl-workflow/24472)

<div class="topic-metadata">

**Author:** [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)\
**Replies:** 7\
**Last updated:** [April 12, 2020, 4:48pm UTC](https://discourse.julialang.org/t/pkgbenchmark-jl-workflow/24472 "2020-04-12T16:48:26Z")

</div>

This is basically a revival of Benchmarking with PkgBenchmark.jl from two years ago. Benchmarking packages to detect regressions seems very important, but I don’t quite get how to use PkgBenchmark.jl effectively. In par…

---

## [Benchmarking Julia vs NumPy](https://discourse.julialang.org/t/benchmarking-julia-vs-numpy/36695)

<div class="topic-metadata">

**Author:** [@Tasty\_Minerals](https://discourse.julialang.org/u/Tasty_Minerals)\
**Replies:** 9\
**Last updated:** [March 29, 2020, 9:21pm UTC](https://discourse.julialang.org/t/benchmarking-julia-vs-numpy/36695 "2020-03-29T21:21:38Z")

</div>

Hello, I decided to make couple of benchmarks against NumPy out of curiosity. Since I don’t know Julia it would be nice if someone could take a second look because based on what I measured it doesn’t look like Julia is …

---

## [Division isn't auto-vectorized when function inlined](https://discourse.julialang.org/t/division-isnt-auto-vectorized-when-function-inlined/35818)

<div class="topic-metadata">

**Author:** [@non-Jedi](https://discourse.julialang.org/u/non-Jedi)\
**Replies:** 12\
**Last updated:** [March 11, 2020, 1:54pm UTC](https://discourse.julialang.org/t/division-isnt-auto-vectorized-when-function-inlined/35818 "2020-03-11T13:54:34Z")

</div>

I’m attempting to rewrite the benchmarks game spectralnorm implementation without relying on llvmcall for vectorization. I got close to the performance, but it requires awkwardly doing division in a helper function annot…

---

## [\[ANN\] SnoopCompile 1.2 - Package Precompilation](https://discourse.julialang.org/t/ann-snoopcompile-1-2-package-precompilation/33359)

<div class="topic-metadata">

**Author:** [@Amin\_Yahyaabadi](https://discourse.julialang.org/u/Amin_Yahyaabadi)\
**Replies:** 2\
**Last updated:** [January 15, 2020, 9:58am UTC](https://discourse.julialang.org/t/ann-snoopcompile-1-2-package-precompilation/33359 "2020-01-15T09:58:35Z")

</div>

I am happy to announce that SnoopCompile 1.2 now has a GitHub Actions Bot, and it introduces @snoopiBot and @snoopiBench macros. You can use this feature to automatically create precompilation signatures for your packa…

[Previous page](https://discourse.julialang.org/tag/benchmark/160.md?match_all_tags=true&page=1&tags%5B%5D=benchmark)

[Next page](https://discourse.julialang.org/tag/benchmark/160.md?match_all_tags=true&page=3&tags%5B%5D=benchmark)
