Repository navigation
Commit 673d12f
committed
improve measureText bench, add fillText bench
Using a generic name should give consistent results, at least when
comparing to the old Pango implementation. Math.random() seems to
bust through FreeType and HarfBuzz caches.
The fillText benchmark shows a performance regression vs v3, which
I will fix next.1 parent 1c2da8e commit 673d12f
1 file changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
76 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
77 | 82 | | |
78 | 83 | | |
79 | 84 | | |
| |||
0 commit comments