Nasal performance and benchmarks: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
No edit summary
mNo edit summary
Line 134: Line 134:
=== Canvas API - Text class ===
=== Canvas API - Text class ===
Optimized canvas API with caching and props.Node (not merged to FGDATA at the time of writing)
Optimized canvas API with caching and props.Node (not merged to FGDATA at the time of writing)
Repeat = 50,000
{| class="wikitable"
{| class="wikitable"
|-
|-
! Test !! Time [s] !! Comment
! Test !! Time [s] !! Comment
|-
|-
| setText() same value || 0.015 || old: 0.075
| setText() same value || 0.046 ||  
|-
|-
| setText() different value || 0.100 || old: 0.150
| setText() different value || 0.561 ||  
|-
| appendText || 9.0 || the ~ operator is really slow
|}
|}


252

edits

Navigation menu