mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-15 13:29:40 +02:00
Test
This commit is contained in:
@@ -17,6 +17,11 @@ const getRuntimes = (csv: string): RunTimes => {
|
||||
const [testName, timeTaken] = line.split(',');
|
||||
if (testName && timeTaken) {
|
||||
runtimes[testName] = Number(timeTaken);
|
||||
|
||||
// TODO: Add some variation to test logging. Should remove.
|
||||
if (Math.random() < 0.3) {
|
||||
runtimes[testName] *= Math.random() * 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
return runtimes;
|
||||
|
Reference in New Issue
Block a user