| 26 | } |
| 27 | |
| 28 | function calculateMeanAndSdOfRatioFromDeltaMethod( |
| 29 | meanControl, |
| 30 | meanTest, |
| 31 | semControl, |
| 32 | semTest |
| 33 | ) { |
| 34 | const mean = |
| 35 | (meanTest - meanControl) / meanControl - |
| 36 | (Math.pow(semControl, 2) * meanTest) / Math.pow(meanControl, 3); |
| 37 | const variance = |
| 38 | Math.pow(semTest / meanControl, 2) + |
| 39 | Math.pow(semControl * meanTest, 2) / Math.pow(meanControl, 4); |
| 40 | return [mean, Math.sqrt(variance)]; |
| 41 | } |
| 42 | |
| 43 | function addBenchmarkResults(table, localResults, remoteMasterResults) { |
| 44 | const benchmarks = Object.keys( |