Skip to content

Commit

Permalink
add README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Barth committed Oct 15, 2023
1 parent 8eff29f commit 6edbab6
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Benchmark/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@


# Benchmark

Compute the running/moving correlation between a long
time series x and a short time series y


This benchmark compare a straight-foward implementations
using loops in [julia](test_running_correlation.jl) and [R](test_running_correlation.R).

| | | median | mean |
|--------|--------|-----------|--------|
| julia | 1.9.0 | 8.446 ms | 8.403 ms |
| R | 4.1.2 | 1383 ms | 1376 ms |


Results from on Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz

In R, one need to "vectorize" code (i.e. avoid loops in the R code) to achieve good performance which is not always possible.

0 comments on commit 6edbab6

Please sign in to comment.