@@ -3,7 +3,7 @@ Benchmarking
33############
44
55CodeIgniter provides two separate tools to help you benchmark your code and test different options:
6- the Timer and the Iterator. The Timer allows you to easily calculate the time between two points in the
6+ the ** Timer ** and the ** Iterator ** . The Timer allows you to easily calculate the time between two points in the
77execution of your script. The Iterator allows you to set up several variations and runs those tests, recording
88performance and memory statistics to help you decide which version is the best.
99
@@ -58,7 +58,7 @@ Displaying Execution Time
5858=========================
5959
6060While the ``getTimers() `` method will give you the raw data for all of the timers in your project, you can retrieve
61- the duration of a single timer, in seconds, with the `getElapsedTime() ` method. The first parameter is the name of
61+ the duration of a single timer, in seconds, with the `` getElapsedTime() ` ` method. The first parameter is the name of
6262the timer to display. The second is the number of decimal places to display. This defaults to 4:
6363
6464.. literalinclude :: benchmark/006.php
@@ -76,7 +76,7 @@ Creating Tasks To Run
7676=====================
7777
7878Tasks are defined within Closures. Any output the task creates will be discarded automatically. They are
79- added to the Iterator class through the `add() ` method. The first parameter is a name you want to refer to
79+ added to the Iterator class through the `` add() ` ` method. The first parameter is a name you want to refer to
8080this test by. The second parameter is the Closure, itself:
8181
8282.. literalinclude :: benchmark/007.php
@@ -91,6 +91,6 @@ to run the tests more times than that, you can pass the number as the first para
9191.. literalinclude :: benchmark/008.php
9292
9393Once it has run, it will return an HTML table with the results of the test. If you don't want the results
94- displayed, you can pass in `false ` as the second parameter:
94+ displayed, you can pass in `` false ` ` as the second parameter:
9595
9696.. literalinclude :: benchmark/009.php
0 commit comments