# With Missings, Julia is slower than R

**URL:** https://discourse.julialang.org/t/with-missings-julia-is-slower-than-r/11838
**Category:** General Usage
**Created:** [June 21, 2018, 3:17am UTC](https://discourse.julialang.org/t/with-missings-julia-is-slower-than-r/11838 "2018-06-21T03:17:56Z")
**Posts on this page:** 1
**Showing post:** 31

<div class="post-metadata">

### Author: ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)
#### Post date: [February 26, 2021, 4:10am UTC](https://discourse.julialang.org/t/with-missings-julia-is-slower-than-r/11838/31 "2021-02-26T04:10:59Z")

</div>

> [@Yifan\_Liu](#):
>
> Julia is not always faster than R and Python.

there are always multiple levels of understanding to this story. In this case, a relevant point is:

> [@nalimilan](#):
>
> R’s `sum` is implemented in C, so being only twice slower than it in pure Julia is already quite good. If you write a sum in pure R, it will be much slower than that! More fundamentally, the fact that writing the loop manually gives a better performance means that we should be able to match R relatively easily, and probably beat it at least in some cases.

More importantly, in almost all cases, Julia can fix the problem by writing idiomatic Julia code, instead of MUST relying on C/C++/Fortran subroutine like you see in Python/R.

If you compare the time R/Python people spent in writing C/C++ code to the time someone in Julia community casually writing PRs to make a specific use faster, hopefully you’d see the qualitative difference and the long-term implication of this.

---

_[View the full topic](https://discourse.julialang.org/t/with-missings-julia-is-slower-than-r/11838)._
