From 29662094f77e161f8c2f41a6199ca57db9416857 Mon Sep 17 00:00:00 2001 From: Matt Brubeck Date: Mon, 4 May 2015 12:57:06 -0500 Subject: [PATCH] servo: Merge #5934 - Add instructions for building with --release (from mbrubeck:readme); r=pcwalton Source-Repo: https://github.com/servo/servo Source-Revision: 89f90d930d172366d72fdd9f3363c80a5a56f552 --- servo/README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/servo/README.md b/servo/README.md index cfd0e3dda630..126973503694 100644 --- a/servo/README.md +++ b/servo/README.md @@ -81,6 +81,15 @@ cd servo ./mach run tests/html/about-mozilla.html ``` +By default, Servo builds in debug mode. This is useful for development, but +the resulting binary is very slow. For benchmarking, performance testing, or +real-world use, add the `--release` flag to create an optimized build: + +``` sh +./mach build --release +./mach run --release tests/html/about-mozilla.html +``` + ### Building for Android target ``` sh