# How to speed up ember build?

**URL:** <https://discuss.emberjs.com/t/how-to-speed-up-ember-build/17637>\
**Category:** Ember CLI\
**Created:** [March 16, 2020, 2:37pm UTC](https://discuss.emberjs.com/t/how-to-speed-up-ember-build/17637 "2020-03-16T14:37:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ondrejsevcik](https://avatars.discourse-cdn.com/v4/letter/o/ed655f/32.png) [@ondrejsevcik](https://discuss.emberjs.com/u/ondrejsevcik)\
**Post date:** [March 16, 2020, 2:37pm UTC](https://discuss.emberjs.com/t/how-to-speed-up-ember-build/17637/1 "2020-03-16T14:37:31Z")

</div>

Hi, we’re having some trouble with an ember build times in our team.

Our main application is composed of the app itself, 9 engines and a few our internal addons. Most of this lives in one repository (we’re using yarn workspaces). We’re on Ember 3.16.

When I run `ember build` it takes between 5-7 minutes to build. The production build is a bit faster (3-4 mins).

This is the output of [tokei](https://github.com/XAMPPRocky/tokei)

```auto
-------------------------------------------------------------------------------
 Language Files Lines Code Comments Blanks
-------------------------------------------------------------------------------
 Handlebars 1262 56611 49427 353 6831
 JavaScript 3174 305197 227203 40895 37099
 Sass 67 4137 3441 52 644
-------------------------------------------------------------------------------
 Total 4503 365945 280071 41300 44574
-------------------------------------------------------------------------------

```

Before I deep dive into the investigation, are there any tips or what to look for?

Thank you, Ondrej

---

<div class="post-metadata">

**Author:** ![dknutsen](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/dknutsen/32/16471_2.png) [@dknutsen](https://discuss.emberjs.com/u/dknutsen)\
**Post date:** [March 16, 2020, 3:01pm UTC](https://discuss.emberjs.com/t/how-to-speed-up-ember-build/17637/2 "2020-03-16T15:01:19Z")

</div>

I’ve used broccoli-viz before to generate a massive visualization of the build and how long each part takes. It can be a little crazy to dig through but can help narrow down what’s taking the longest. The steps in [this article](https://medium.com/@Dhaulagiri/debugging-ember-cli-build-times-38bd1b0f55f9) seem about right. Not sure about compatibility since you’re on new Ember but hopefully it should work fine.

Anyway, good luck and please post any findings/tips here for posterity!

---

<div class="post-metadata">

**Author:** ![mattmcmanus](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/mattmcmanus/32/13776_2.png) [@mattmcmanus](https://discuss.emberjs.com/u/mattmcmanus)\
**Post date:** [March 18, 2020, 2:53pm UTC](https://discuss.emberjs.com/t/how-to-speed-up-ember-build/17637/3 "2020-03-18T14:53:31Z")

</div>

I did some work on this a little bit ago and I tried to break it down in this post: [Tips for improving build time of large apps](https://discuss.emberjs.com/t/tips-for-improving-build-time-of-large-apps/15008) Hopefully it helps!

---

<div class="post-metadata">

**Author:** ![tniezurawski](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/tniezurawski/32/17896_2.png) [@tniezurawski](https://discuss.emberjs.com/u/tniezurawski)\
**Post date:** [September 7, 2020, 11:40am UTC](https://discuss.emberjs.com/t/how-to-speed-up-ember-build/17637/4 "2020-09-07T11:40:56Z")

</div>

@ondrejsevcik I’m not yet sure what the answer is because I’ve just started thinking about optimizing the builds but to compare our project seems to be 3 times smaller:

```auto
===============================================================================
 Language Files Lines Code Comments Blanks
===============================================================================
 CSS 464 21119 17912 241 2966
 Handlebars 696 29758 27923 377 1458
 HTML 1 26 21 0 5
 JavaScript 965 53709 43904 2133 7672
 Sass 46 2737 2392 7 338
===============================================================================
 Total 2172 107349 92152 2758 12439
===============================================================================

```

and it takes ~ 1.5 min to build and ~10 sec to rebuild on my machine which already drives me crazy 😉

---

<div class="post-metadata">

**Author:** ![mrloop](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/mrloop/32/4077_2.png) [@mrloop](https://discuss.emberjs.com/u/mrloop)\
**Post date:** [September 7, 2020, 8:21pm UTC](https://discuss.emberjs.com/t/how-to-speed-up-ember-build/17637/5 "2020-09-07T20:21:22Z")

</div>

@tniezurawski these perf docs might help, worth a read [ember-cli/perf-guide.md at c9320aeb9fb521887bd8fec8f722bef0608c9fe5 · ember-cli/ember-cli · GitHub](https://github.com/ember-cli/ember-cli/blob/c9320aeb9fb521887bd8fec8f722bef0608c9fe5/docs/perf-guide.md)
