How to build Firefox from 4.0 source and optimize it?

Apache

I have found tons of links, resources regarding this topic. However, most of them just compile it and that's it.

I want to disable debug, enable -O3 optimization (this one fails hard at the compile.. "unknown option").

Used these:
https://developer.mozilla.org/En/Simple_Firefox_build
http://kpangilinan.wordpress.com/2010/10/08/build-firefox-on-windows-7-with-visual-studio-2010/

So. After I install all the stuff, how do I start the ./configure part (mozconfig?) and how do I get the -O3 flag working? (Extra part: How do I compile it for x86_64 ? I don't care about the "beta state", plugins tend to work, and the flash plugin just works fine.)

Tamara Wijsman

How I compiled an optimized version of the latest (Nightly) Firefox:

Here is what I have done:

  1. Check here for the source of the stable builds. I've took a nightly version, because that's me...

  2. Installed latest DirectX SDK, the configuration part of building informs you about this for ANGLE.

  3. Use ac_add_options --enable-optimize="-Ox -GLATFys -fp:fast -arch:SSE2"

This basically takes O2 and adds optimization options on top; check the Ox, GL, GA, GT, GF, Gy, Gs docs.
It also optimizes floating points and uses the SSE2 architecture, it disables DEBUG by default.

If you notice that one of these is wrong feel free to inform me, but this seems to work to me...

Took 1 hour to compile on my fast laptop.

enter image description here

Benchmarks of latest available versions:

Lower is better:

IE9 SunSpider: 591.4 ms +/- 6.2%
FF4 SunSpider: 275.1 ms +/- 3.6% Winner!
Chrome11 SunSpider: 301.2 ms +/- 4.8%

IE9 Kraken: 16093.0ms +/- 0.7%
FF4 Kraken: 6446.9ms +/- 0.7% Winner!
Chrome11 Kraken: 7947.7ms +/- 0.5%
Please note that previous test is written by Mozilla and might test Firefox specific advantages.

Higher is better:

IE9 V8: 2232 (R: 2097, DB: 2200, C: 3579, RT: 1697, EB: 3336, RE: 1750, S: 1687)
FF4 V8: 3716 (R: 5066, DB: 4760, C: 5318, RT: 3552, EB: 3887, RE: 1244, S: 4441)
Chrome11 V8: 7451 (R: 9976, HM: 13468, C: 11850, RT: 8304, EB: 17153, RE: 2076 S: 2714) Winner!
Please note that previous test is written by Google and might test Chrome specific advantages.

IE9 Peacekeeper: 5135
FF4 Peacekeeper: 4465

Chrome11 Peacekeeper: 8099 Winner!

Conclusion:

I'm currently running IE9 so it seems worthwhile to switch to Firefox.

As it is interesting that Chrome outperforms in the later tests, I might try to build an optimized Chrome later.
I'll benchmark the normal Firefox and an optimized Chrome later...

Versions used:

Microsoft Internet Explorer 9.0.8112.16421 RTM.
FF Minefield 4.2a1pre (2011-03-25) with -Ox -GLATFys -fp:fast -arch:SSE2.
Google Chrome 11.0.696.14 dev without optimization.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to build v4 support library from source

From Dev

How to build Compiz from source?

From Dev

build vnc4server from source

From Dev

How do I build libcurl from source?

From Dev

How to build a .deb file for CMake from source?

From Dev

How to build Chameleon bootloader from SVN source?

From Dev

How to build Chromium from source on OpenBSD?

From Dev

How do I build Unity from source?

From Dev

How do I build libcurl from source?

From Dev

Fullcalendar js how to build from source

From Dev

How to build Chameleon bootloader from SVN source?

From Dev

How to build the GDB documentation from source?

From Dev

How to build gnuradio without the documentation (from source)

From Dev

elastic4s build query from JSON source

From Dev

Build HikariCP from source

From Dev

How to build a source package?

From Dev

how to properly build spark 2.0 from source, to include pyspark?

From Dev

How do I build Nautilus 3.70/3.80 from source?

From Dev

How do I build and install a Puppet module locally from source?

From Dev

How to include/exclude source files from the project depending on the build configuration?

From Dev

How to build Qt 5 from source with c++14 support

From Dev

Android studio how to build a project from github source

From Dev

How does one build WINCACHE .DLL from source files?

From Dev

How can I build KDE Dolphin from its source code?

From Dev

How do I build Nautilus 3.70/3.80 from source?

From Dev

How to build libssl.a for iOS from source code?

From Dev

How to build a specific package from a Debian source package?

From Dev

How to include/exclude source files from the project depending on the build configuration?

From Dev

How to build cmake-gui on Linux from source?

Related Related

  1. 1

    How to build v4 support library from source

  2. 2

    How to build Compiz from source?

  3. 3

    build vnc4server from source

  4. 4

    How do I build libcurl from source?

  5. 5

    How to build a .deb file for CMake from source?

  6. 6

    How to build Chameleon bootloader from SVN source?

  7. 7

    How to build Chromium from source on OpenBSD?

  8. 8

    How do I build Unity from source?

  9. 9

    How do I build libcurl from source?

  10. 10

    Fullcalendar js how to build from source

  11. 11

    How to build Chameleon bootloader from SVN source?

  12. 12

    How to build the GDB documentation from source?

  13. 13

    How to build gnuradio without the documentation (from source)

  14. 14

    elastic4s build query from JSON source

  15. 15

    Build HikariCP from source

  16. 16

    How to build a source package?

  17. 17

    how to properly build spark 2.0 from source, to include pyspark?

  18. 18

    How do I build Nautilus 3.70/3.80 from source?

  19. 19

    How do I build and install a Puppet module locally from source?

  20. 20

    How to include/exclude source files from the project depending on the build configuration?

  21. 21

    How to build Qt 5 from source with c++14 support

  22. 22

    Android studio how to build a project from github source

  23. 23

    How does one build WINCACHE .DLL from source files?

  24. 24

    How can I build KDE Dolphin from its source code?

  25. 25

    How do I build Nautilus 3.70/3.80 from source?

  26. 26

    How to build libssl.a for iOS from source code?

  27. 27

    How to build a specific package from a Debian source package?

  28. 28

    How to include/exclude source files from the project depending on the build configuration?

  29. 29

    How to build cmake-gui on Linux from source?

HotTag

Archive