Hi
Mojolicious application it is taking 4-5 seconds. I have no idea as to what is taking so long when going through IIS.
This sounds very normal, look
$ mojo generate lite_app
[exist] /foo/foo
[write] /foo/foo/myapp.pl
[chmod] /foo/foo/myapp.pl 744
$ perl -le"print ~~localtime; system $^X, q[myapp.pl], q[daemon] "
Sun Feb 12 21:45:01 2017
[Sun Feb 12 21:45:04 2017] [info] Listening at "http://*:3000"
Server available at http://127.0.0.1:3000
Terminating on signal SIGINT(2)
Sure my machine is old my disk is slow, but 5 seconds for startup sounds rather normal
Just adding DBI/DBD::SQLite/DBIx::Class/Template/Data::Dumper/Moose bumps it to 6 seconds easy
$ perl -le"print ~~localtime; system $^X, q[myapp.pl], q[daemon] "
Sun Feb 12 21:51:39 2017
[Sun Feb 12 21:51:45 2017] [info] Listening at "http://*:3000"
Server available at http://127.0.0.1:3000
Terminating on signal SIGINT(2)
It gets a little faster if I do it in a loop but only a little
$ perl -le"for(1..10){ print ~~localtime; system $^X, q[myapp.pl], q[d
+aemon]; } "
Sun Feb 12 21:53:07 2017
[Sun Feb 12 21:53:11 2017] [info] Listening at "http://*:3000"
Server available at http://127.0.0.1:3000
Sun Feb 12 21:53:17 2017
[Sun Feb 12 21:53:21 2017] [info] Listening at "http://*:3000"
Server available at http://127.0.0.1:3000
Sun Feb 12 21:53:23 2017
[Sun Feb 12 21:53:27 2017] [info] Listening at "http://*:3000"
Server available at http://127.0.0.1:3000
Sun Feb 12 21:53:29 2017
[Sun Feb 12 21:53:33 2017] [info] Listening at "http://*:3000"
Server available at http://127.0.0.1:3000
Its all very normal
Yes you could have some settings in IIS or ... that might contribute some speed penalty ...
The only option to not have slowdown, is to not have apps available, until they are preloaded -- the user waits either way
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.