Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fastR slower than GNU R #195

Open
abhinaynagpal opened this issue Feb 6, 2022 · 2 comments
Open

fastR slower than GNU R #195

abhinaynagpal opened this issue Feb 6, 2022 · 2 comments

Comments

@abhinaynagpal
Copy link

abhinaynagpal commented Feb 6, 2022

library('forecast')
data("AirPassengers")
time_func <- function() {
startTime <- Sys.time()
mymodel <- auto.arima(AirPassengers)
myforecast <- forecast(mymodel, level=c(95), h=10*12)
endTime <- Sys.time()
print(endTime - startTime)
}

time_func()

GNU R takes 1 second VS fastR : 3.9 seconds, any pointers how this can be optimized?

@abhinaynagpal
Copy link
Author

I had also tried
/opt/java/graalvm/languages/R/bin/R --R.BackEnd=llvm

library('forecast')
Warning message:
Loading of '/root/R/x86_64-pc-linux-gnu-library/fastr-21.3.0-4.0/lmtest/libs/lmtest.so' in LLVM mode failed. You may load this package via the native mode by adding it to /opt/java/graalvm/languages/R/etc/native-packages or by running FastR with option --R.BackEndNative=packageName.
Error in polyglot evaluation : External LLVMFunction pan_ cannot be found.

@abh1nay
Copy link

abh1nay commented Feb 6, 2022

On a related note will https://github.com/flang-compiler/flang integration with this help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants