From f950f3094de718f5294a84fb7e0a78390818ba4d Mon Sep 17 00:00:00 2001 From: Luke Imhoff Date: Wed, 3 Dec 2014 15:44:04 -0600 Subject: [PATCH] "Without --yaml or MSF_DATABASE_CONFIG, ~/.msf4/database.yml wins" --defer-module-loads MSP-11671 Pass `--defer-module-loads` to `msfconsole` to change average (n=10) runtime for `/usr/bin/time rake CUCUMBER_OPTS="-r features" FEATURE=features/msfconsole/database_yml.feature:88 cucumber:boot` from 51.79 seconds to 39.25 seconds (-24.40%). (-71.74% from e9a69a844cd2f2f7ad24386dd3adf7ccbd18d2b3.) Raw data: https://docs.google.com/spreadsheets/d/1vCRi_38Go3Wfq670eDCXMTSSXL1blSbk6NQsgpOqfYw/edit?usp=sharing. --- features/msfconsole/database_yml.feature | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/msfconsole/database_yml.feature b/features/msfconsole/database_yml.feature index 757974a820..718cb7d77e 100644 --- a/features/msfconsole/database_yml.feature +++ b/features/msfconsole/database_yml.feature @@ -109,7 +109,7 @@ Feature: `msfconsole` `database.yml` database: project_metasploit_framework_test username: project_metasploit_framework_test """ - When I run `msfconsole --environment test --execute-command exit` + When I run `msfconsole --defer-module-loads --environment test --execute-command exit` Then the output should contain "user_metasploit_framework_test" Scenario: Without --yaml, MSF_DATABASE_CONFIG or ~/.msf4/database.yml, project "database.yml" wins