Requires Decipher Cloud
howfast script uses the most recent SST run to determine a survey's performance. For this script to provide meaningful results, the SST must include at least 200 qualified completes.
Use the following to run the
selfserve/123/456 represents the survey's path.
1: Viewing the Results
Below is an example of output from running the
Using SST run from: Wed Mar 18 09:20:55 2015 Page performance: 13 ms Per second: 106.3 Pages per hour: 382563 Average pages per complete 16 Completes per hour: 23910
The table below details how some data points are calculated.
|(completes) Per second||Time for generating one page with SST multiplied by what it takes in production multiplied by the number of process used while executing the survey.|
|Pages per hour||"Per second" divided by the number of pages to complete the survey. Note that this data point assumes respondents are distributed evenly and the survey is undisturbed (e.g. no data edits, or changes to the survey including style changes).|
1.1: Calculating the Performance Using the SST List
If you do not have shell access, you can view the "SST list" report to see the mean time:
Here, the mean time for SST to show a page is 0.012 seconds on average. Using this value you can calculate the "Completes per hour", the output from running the
To calculate the" Completes per hour":
Step 1: First calculate the "Pages per Hour":
Take 5000 and divide it by the page performance (0.012). This number reports the page views per hour. In this example, the page views per hour is approximately 410000.
Step 2: Next calculate the Completes per hour:
Take the "Pages per Hour" (calculated in step 1) and divide by the number of pages in the survey for completion. In this example, there are 16 average pages per complete. The resulting number represents approximately the "Completes per hour".
2: When Performance is a Concern
You evaluate survey performance based on how much sample the client intends to send out. Consider these points:
- If the client sample is limited, then survey performance is not likely to be an issue. It is acceptable for the "Completes per hour" to be low.
- If the client sample is large and you plan for 10,000 completes per hour but the script reports 5,000 "Completes per hour", you should take action to increase the survey performance. Otherwise, most respondents will drop out due to the overloaded server.
If a survey exceeds peak capacity so that respondents have to wait, new respondents receive the error screen, "survey too busy."
3: Improving Survey Performance
If survey performance is below your requirements, you can take the following steps to increase the "Completes per hour":
- Reduce the number of pages in the survey so multiple questions are asked on the same page.
- Set the scaling survey attribute to a higher number. This allows for more CPUs to run the survey. You can typically increase this number up to
scaling='5'but above this number may result in limited returns. By default, the scaling factor is set to 3.
markerTimeout='0'. This action turns off "pending markers” for quotas and also allows the same source to start the survey multiple times. Synchronizing this information can take awhile.
You can also use a survey’s
tsst --profile to determine what questions or elements take a long time to execute in the survey and then optimize those items.
3.1: Overview of the
tsst --profile Output file
tsst --profile output file lists all of the questions within a survey and shows three columns of data per element:
type of request- This column shows the type of request made, along with the question/call name.
number of requests made- This column shows the total number of requests made to that individual question.
total time for all requests of this type - This column shows the total amount of time spent (in seconds) for calling all requests for that question.
get survey.respview 4000 12.191026
display q6 500 1.187447
display q5 500 1.137169
get sys.thankspage 500 0.945147
display q1 500 0.764799
display q2 500 0.749749
display q3 500 0.613445
display q4 500 0.671377
Typically, most question
display requests are executed once per respondent, while other request types, such as
get survey.respview may be executed more or less often. These other requests are mostly connected to survey styling and display. Since certain styles are called more than once per page, the number of requests is higher (or lower, depending on the request) than the amount of simulations being run.
3.2: Reading the
tsst --profile Output File
display q61.187447 seconds to process all 500 requests. Dividing that number by the total number of simulations in column two (500), you can see that the system spent about 0.002 seconds to process each record (1.187/500 = 0.002374), which is more than fast enough.