-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8eff29f
commit 6edbab6
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |