How fast is Agile Toolkit?

200 x

  1. Frame
  2. Form
  3. Field line
  4. Field Button
  5. Form jQuery Chain
  6. URL object
  7. 12 templates

Agile Toolkit adds minimum overhead to your software. UI layer is highly optimized and shows amazing performance. Lets demonstrate by putting 200 forms on a page. Each form is an individual object which also consists of sub-elements such as fields, buttons and a template.

This page rendering required 43 objects and 49 templates. Forms in a test required 6 objects per form and 12 templates per form including the frame. In total it took 3692 objects and on average takes 0.8 seconds to execute on Amazon AWS instance, around 0.0002 per object. This benchmark should demonstrate both how efficienc PHP is with objects and how efficiently each object is developed.

It must be noted that each form is fully functional, includes validation, uses AJAX for submission and validation.

Result

Form 0
Form 1
Form 2
Form 3
Form 4
Form 5
Form 6
Form 7
Form 8
Form 9
Form 10
Form 11
Form 12
Form 13
Form 14
Form 15
Form 16
Form 17
Form 18
Form 19
Form 20
Form 21
Form 22
Form 23
Form 24
Form 25
Form 26
Form 27
Form 28
Form 29
Form 30
Form 31
Form 32
Form 33
Form 34
Form 35
Form 36
Form 37
Form 38
Form 39
Form 40
Form 41
Form 42
Form 43
Form 44
Form 45
Form 46
Form 47
Form 48
Form 49
Form 50
Form 51
Form 52
Form 53
Form 54
Form 55
Form 56
Form 57
Form 58
Form 59
Form 60
Form 61
Form 62
Form 63
Form 64
Form 65
Form 66
Form 67
Form 68
Form 69
Form 70
Form 71
Form 72
Form 73
Form 74
Form 75
Form 76
Form 77
Form 78
Form 79
Form 80
Form 81
Form 82
Form 83
Form 84
Form 85
Form 86
Form 87
Form 88
Form 89
Form 90
Form 91
Form 92
Form 93
Form 94
Form 95
Form 96
Form 97
Form 98
Form 99
Form 100
Form 101
Form 102
Form 103
Form 104
Form 105
Form 106
Form 107
Form 108
Form 109
Form 110
Form 111
Form 112
Form 113
Form 114
Form 115
Form 116
Form 117
Form 118
Form 119
Form 120
Form 121
Form 122
Form 123
Form 124
Form 125
Form 126
Form 127
Form 128
Form 129
Form 130
Form 131
Form 132
Form 133
Form 134
Form 135
Form 136
Form 137
Form 138
Form 139
Form 140
Form 141
Form 142
Form 143
Form 144
Form 145
Form 146
Form 147
Form 148
Form 149
Form 150
Form 151
Form 152
Form 153
Form 154
Form 155
Form 156
Form 157
Form 158
Form 159
Form 160
Form 161
Form 162
Form 163
Form 164
Form 165
Form 166
Form 167
Form 168
Form 169
Form 170
Form 171
Form 172
Form 173
Form 174
Form 175
Form 176
Form 177
Form 178
Form 179
Form 180
Form 181
Form 182
Form 183
Form 184
Form 185
Form 186
Form 187
Form 188
Form 189
Form 190
Form 191
Form 192
Form 193
Form 194
Form 195
Form 196
Form 197
Form 198
Form 199
 

Code

for($i=0;$i<200;$i++){
    
$f=$p->add('Frame')->setTitle('Form '.$i)->add('Form');
    
$f->addField('line','name')->validateNotNull();
    
$f->addSubmit('Greeting');
    if(
$f->isSubmitted()){
        
$result='Hello, '.$f->get('name');
        
$f->js()->univ()->alert($result)->execute();
    }
}
Took 0.88210582733154s