Skip to main content

crdt_lf_flutter

The text fields: one keystroke, one format, one remote edit taken in, and undo, on texts of growing size. The "Handler only" rows measure the handler alone, as a reference for what the field adds.

rich_text_field_benchmark.dart​

BenchmarkRunTime (us)RunTime (ms)RunTime (s)
Rich text: one keystroke at the end, 1000 chars59.54000.05950.000060
Rich text: one keystroke at the end, 10000 chars93.40000.09340.000093
Rich text: one keystroke at the end, 50000 chars295.72000.29570.000296
Rich text: one keystroke in the middle, 10000 chars79.53000.07950.000080
Rich text: bold a 50-char selection, 10000 chars121.36000.12140.000121
Rich text: bold a 50-char selection, 50000 chars877.83000.87780.000878
Rich text: adopt one remote keystroke, 10000 chars63.27000.06330.000063
Rich text: adopt one remote format, 10000 chars50.55000.05050.000051
Rich text: adopt one remote keystroke, 50000 chars152.19000.15220.000152
Rich text: adopt one remote format, 50000 chars117.02000.11700.000117
Rich text: type, undo and redo one char, 10000 chars405.18000.40520.000405

text_field_benchmark.dart​

BenchmarkRunTime (us)RunTime (ms)RunTime (s)
Fugue text: one keystroke at the end, 1000 chars52.34000.05230.000052
Fugue text: one keystroke at the end, 10000 chars59.53000.05950.000060
Fugue text: one keystroke at the end, 50000 chars166.82000.16680.000167
Fugue text: one keystroke in the middle, 10000 chars54.23000.05420.000054
Index text: one keystroke at the end, 10000 chars55.38000.05540.000055
Fugue text: adopt one remote keystroke, 10000 chars36.22000.03620.000036
Fugue text: adopt one remote keystroke, 50000 chars54.46000.05450.000054
Handler only: insert one char, 10000 chars2.38000.00240.000002
Handler only: insert one char and read, 10000 chars75.50000.07550.000076
Handler only: insert one char, 50000 chars2.58000.00260.000003
Handler only: insert one char and read, 50000 chars522.58000.52260.000523
No binding: one keystroke on a bare controller, 10000 chars17.87000.01790.000018