Improved book layout in benchmark
This commit is contained in:
Родитель
99f004dd85
Коммит
e2774ef347
|
@ -93,7 +93,7 @@ namespace QuestPDF.Examples
|
|||
var lineFrom = chapterPointers[index];
|
||||
var lineTo = chapterPointers[index + 1] - 1;
|
||||
|
||||
var lines = book.Skip(lineFrom + 1).Take(lineTo - lineFrom).Where(x => !string.IsNullOrWhiteSpace(x));
|
||||
var lines = book.Skip(lineFrom + 1).Take(lineTo - lineFrom).Where(x => !string.IsNullOrWhiteSpace(x))
|
||||
var content = string.Join(Environment.NewLine, lines);
|
||||
|
||||
yield return new BookChapter
|
||||
|
|
|
@ -1,121 +0,0 @@
|
|||
# Text optimization
|
||||
|
||||
## Initial state
|
||||
|
||||
Attempts:
|
||||
|
||||
```
|
||||
Attempt 0: 18389,00
|
||||
Attempt 1: 18627,00
|
||||
Attempt 2: 19745,00
|
||||
Attempt 3: 19690,00
|
||||
Attempt 4: 19032,00
|
||||
Attempt 5: 17773,00
|
||||
Attempt 6: 17570,00
|
||||
Attempt 7: 17691,00
|
||||
Attempt 8: 17642,00
|
||||
Attempt 9: 17945,00
|
||||
Attempt 10: 19876,00
|
||||
Attempt 11: 19731,00
|
||||
Attempt 12: 19158,00
|
||||
Attempt 13: 18004,00
|
||||
Attempt 14: 17734,00
|
||||
Attempt 15: 19352,00
|
||||
```
|
||||
|
||||
Results:
|
||||
|
||||
```
|
||||
Min: 17570,00
|
||||
Max: 19876,00
|
||||
Avg: 18622,44
|
||||
```
|
||||
|
||||
## Text Style Key Caching
|
||||
|
||||
Attempts:
|
||||
|
||||
```
|
||||
Attempt 0: 17140,00
|
||||
Attempt 1: 16146,00
|
||||
Attempt 2: 16345,00
|
||||
Attempt 3: 16428,00
|
||||
Attempt 4: 17203,00
|
||||
Attempt 5: 16890,00
|
||||
Attempt 6: 17450,00
|
||||
Attempt 7: 16455,00
|
||||
Attempt 8: 16553,00
|
||||
Attempt 9: 17281,00
|
||||
Attempt 10: 16688,00
|
||||
Attempt 11: 16459,00
|
||||
Attempt 12: 17245,00
|
||||
Attempt 13: 17346,00
|
||||
Attempt 14: 16514,00
|
||||
Attempt 15: 16427,00
|
||||
```
|
||||
|
||||
Results:
|
||||
|
||||
```
|
||||
Min: 16146,00
|
||||
Max: 17450,00
|
||||
Avg: 16785,62
|
||||
```
|
||||
|
||||
## Font Metrics Caching
|
||||
|
||||
```
|
||||
Attempt 0: 13906,00
|
||||
Attempt 1: 13510,00
|
||||
Attempt 2: 13570,00
|
||||
Attempt 3: 13442,00
|
||||
Attempt 4: 13580,00
|
||||
Attempt 5: 13421,00
|
||||
Attempt 6: 13470,00
|
||||
Attempt 7: 13456,00
|
||||
Attempt 8: 13672,00
|
||||
Attempt 9: 14489,00
|
||||
Attempt 10: 13543,00
|
||||
Attempt 11: 13685,00
|
||||
Attempt 12: 13469,00
|
||||
Attempt 13: 13586,00
|
||||
Attempt 14: 13423,00
|
||||
Attempt 15: 13487,00
|
||||
```
|
||||
|
||||
Results:
|
||||
|
||||
```
|
||||
Min: 13421,00
|
||||
Max: 14489,00
|
||||
Avg: 13606,81
|
||||
```
|
||||
|
||||
## Caching Text Measurement Results
|
||||
|
||||
```
|
||||
Attempt 0: 2507,00
|
||||
Attempt 1: 2022,00
|
||||
Attempt 2: 2033,00
|
||||
Attempt 3: 2034,00
|
||||
Attempt 4: 2061,00
|
||||
Attempt 5: 2058,00
|
||||
Attempt 6: 2056,00
|
||||
Attempt 7: 2035,00
|
||||
Attempt 8: 2042,00
|
||||
Attempt 9: 2348,00
|
||||
Attempt 10: 2650,00
|
||||
Attempt 11: 2503,00
|
||||
Attempt 12: 2423,00
|
||||
Attempt 13: 2084,00
|
||||
Attempt 14: 2064,00
|
||||
Attempt 15: 2044,00
|
||||
```
|
||||
|
||||
Results:
|
||||
|
||||
```
|
||||
Min: 2022,00
|
||||
Max: 2650,00
|
||||
Avg: 2185,25
|
||||
```
|
Загрузка…
Ссылка в новой задаче