📝 Originally published (in Japanese) at forge.workstyle.tech.
TL;DR The README and manual listed about 70 seconds per sentence for a sentence of about 2.5 seconds. That result came from a test configuration with 15 steps, while the default is 30. With the default setting, a 3.5 second sentence took about 2 minutes and a 10 second sentence took about 3.5 minutes, measured with 4 threads.
The Takeaway
The roughly 70-second figure in the README and manual came from a test configuration with the number of steps reduced from the default of 30 to 15. When I measured again with the default setting, a 3.5-second sentence took about 2 minutes, and a 10-second sentence took about 3.5 minutes. The measurements used four threads. I corrected the documentation, added the conditions for the roughly 70-second result, and noted that I had not measured its impact on quality.
Which Settings Produced the Roughly 70-Second Result?
When I double-checked the material for my blog, I looked at the settings used for the measurements, not just the numbers. The number of processing steps had been reduced to 15 for testing. The default value, when you leave the settings unchanged, is 30.
The roughly 70-second figure in the README and manual came from a measurement with the reduced step count. The number itself was measured, but it wasn’t the result under the default settings. Without stating the conditions, readers could take it to mean that the default configuration takes about 70 seconds.
After noticing the discrepancy, I updated the figures with measurements taken using the default settings. A 3.5-second sentence took about two minutes, and a 10-second sentence took about three and a half minutes. The measurements used four threads. A thread is a unit that runs a task. Adding more threads doesn’t make it faster.
I also kept the roughly 70-second figure for 15 steps and included the measurement conditions. When the numbers and conditions are presented together, readers can check the assumptions for themselves.
I started writing before measuring the impact on quality
When I updated the numbers, I wrote, “Quality decreases slightly” in the explanation. But I hadn’t measured the impact on quality with the setting configured for 15 steps.
So I changed that sentence to “The impact on quality has not been measured.” I had measured the runtime with the test configuration, but not its quality. I revised the explanation to match what I actually knew.
The updated README now lists the runtime with the default configuration alongside the runtime with 15 steps. It communicates the conditions as well as the roughly 70 seconds, without presenting an unmeasured guess about quality as a result.
How I Revised the Test Conditions and Results
After publishing a figure of about 70 seconds, I went back and checked the settings I had measured. I noticed the difference in settings that same day. I updated the result to reflect measurements with the default settings and added the test conditions to the test figures.
When you report performance numbers, record the test conditions alongside them. That’s what I learned from this mistake. For readers to apply a number from the README to their own environment, they need to know what was configured and how the measurement was taken.
Don’t present something you haven’t measured, such as the effect on quality, as a result. I changed “It decreases slightly” to “I haven’t measured it.” I updated both the figures and the explanation to reflect what I measured and what I know. That was how I made the published README accurate.
Key takeaways
- Record the settings used to measure times listed in a README or manual
- Check whether the step count is the default 30 or the test setting of 15
- Report default timing separately from the roughly 70 second test result
- State when the effect on quality has not been measured
Top comments (0)