Snippets

Leslie Krause Auth Redux Benchmark Results

Created by Leslie Krause
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
***************************************************
*                                                 *
*  BENCHMARK RESULTS :: sauth Mod                 *
*                                                 *
***************************************************

-----------------
-- Player Join --
-----------------

Trial #1				
on_prejoinplayer:   191.557 ms
get_auth:           182.467 ms
get_auth:             0.006 ms
get_auth:             0.002 ms
on_joinplayer:       282.47 ms

Trial #2				
on_prejoinplayer:    46.517 ms
get_auth:            45.812 ms
get_auth:             0.006 ms
get_auth:             0.001 ms
on_joinplayer:      283.108 ms

Trial #3				
on_prejoinplayer:   222.382 ms
get_auth:           223.67 ms
get_auth:             0.005 ms
get_auth:             0.001 ms
on_joinplayer:      286.856 ms

Trial #4				
on_prejoinplayer:    40.254 ms
get_auth:            40.191 ms
get_auth:             0.005 ms
get_auth:             0.001 ms
on_joinplayer:      277.572 ms

Trial #5				
on_prejoinplayer:   113.755 ms
get_auth:           113.559 ms
get_auth:             0.005 ms
get_auth:             0.002 ms
on_joinplayer:      302.207 ms

grand total:       2652.377 ms (530.475 ms per trial)

---------------------
-- New Player Join --
---------------------

Trial #1					
on_prejoinplayer:   667.582 ms
create_auth:         55.143 ms
get_auth:           239.711 ms
get_auth:             0.003 ms
on_joinplayer:      284.481 ms

Trial #2					
on_prejoinplayer:   651.416 ms
create_auth:         70.514 ms
get_auth:           241.781 ms
get_auth:             0.002 ms
on_joinplayer:      291.393 ms

Trial #3					
on_prejoinplayer:   653.206 ms
create_auth:         81.624 ms
get_auth:           241.273 ms
get_auth:             0.003 ms
on_joinplayer:      286.546 ms

Trial #4					
on_prejoinplayer:    52.127 ms
create_auth:         47.274 ms
get_auth:           242.559 ms
get_auth:             0.003 ms
on_joinplayer:      289.712 ms

Trial #5					
on_prejoinplayer:   652.577 ms
create_auth:         50.841 ms
get_auth:           241.937 ms
get_auth:             0.003 ms
on_joinplayer:      287.050 ms

grand total:       6228.747 ms (1245.749 ms per trial)

--------------------
-- SET PRIVILEGES --
--------------------

Trial #1
get_auth:             0.003 ms
get_auth:             0.001 ms
get_auth:            46.787 ms
get_auth:             0.002 ms
get_auth:             0.002 ms
get_auth:             0.000 ms
set_privileges:     332.599 ms
get_auth:             0.003

Trial #2
get_auth:             0.004 ms
get_auth:             0.001 ms
get_auth:           222.644 ms
get_auth:             0.002 ms
get_auth:             0.001 ms
get_auth:             0.001 ms
set_privileges:     296.785 ms
get_auth:             0.004 ms

Trial #3
get_auth:             0.003 ms
get_auth:             0.000 ms
get_auth:            40.614 ms
get_auth:             0.002 ms
get_auth:             0.001 ms
get_auth:             0.001 ms
set_privileges:     298.970 ms
get_auth:             0.004 ms

Trial #4
get_auth:             0.003 ms
get_auth:             0.001 ms
get_auth:           113.697 ms
get_auth:             0.002 ms
get_auth:             0.001 ms
get_auth:             0.000 ms
set_privileges:     296.746 ms
get_auth:             0.004 ms

Trial #5
get_auth:             0.003 ms
get_auth:             0.001 ms
get_auth:           182.452 ms
get_auth:             0.002 ms
get_auth:             0.002 ms
get_auth:             0.001 ms
set_privileges:     287.106 ms
get_auth:             0.003 ms

grant total:       2118.460 ms (423.692 ms per trial)


***************************************************
*                                                 *
*  BENCHMARK RESULTS :: Auth Redux Mod            *
*                                                 *
***************************************************

-----------------
-- Player Join --
-----------------

Trial #1
on_prejoinplayer:     0.059 ms
get_auth:             0.009 ms
get_auth:             0.016 ms
get_auth:             0.006 ms
on_joinplayer:        0.038 ms

Trial #2
on_prejoinplayer:     0.063 ms
get_auth:             0.002 ms
get_auth:             0.005 ms
get_auth:             0.002 ms
on_joinplayer:        0.039 ms

Trial #3
on_prejoinplayer:     0.066 ms
get_auth:             0.002 ms
get_auth:             0.003 ms
get_auth:             0.001 ms
on_joinplayer:        0.039 ms

Trial #4
on_prejoinplayer:     0.064 ms
get_auth:             0.002 ms
get_auth:             0.004 ms
get_auth:             0.001 ms
on_joinplayer:        0.056 ms

Trial #5
on_prejoinplayer:     0.062 ms
get_auth:             0.002 ms
get_auth:             0.005 ms
get_auth:             0.001 ms
on_joinplayer:        0.037 ms

grand total:          0.584 ms (0.117 ms per trial)

---------------------
-- NEW PLAYER JOIN --
---------------------

Trial #1
on_prejoinplayer:   521.555 ms
create_auth:          0.101 ms
get_auth:             0.003 ms
get_auth:             0.002 ms
on_joinplayer:        0.039 ms

Trial #2
on_prejoinplayer:   231.001 ms
create_auth:          0.080 ms
get_auth:             0.003 ms
get_auth:             0.001 ms
on_joinplayer:        0.038 ms

Trial #3
on_prejoinplayer:   265.901 ms
create_auth:          0.081 ms
get_auth:             0.003 ms
get_auth:             0.001 ms
on_joinplayer:        0.037 ms

Trial #4
on_prejoinplayer:   265.861 ms
create_auth:          0.099 ms
get_auth:             0.004 ms
get_auth:             0.001 ms
on_joinplayer:        0.038 ms

Trial #5
on_prejoinplayer:   243.255 ms
create_auth:          0.082 ms
get_auth:             0.004 ms
get_auth:             0.001 ms
on_joinplayer:        0.039 ms

total:             1528.334 ms (305.667 ms per trial)

--------------------
-- SET PRIVILEGES --
--------------------

Trial #1
get_auth:            0.012 ms
get_auth:            0.005 ms
get_auth:            0.001 ms
get_auth:            0.000 ms
get_auth:            0.007 ms
set_privileges:      0.081 ms
get_auth:            0.001 ms

Trial #2
get_auth:            0.014 ms
get_auth:            0.005 ms
get_auth:            0.001 ms
get_auth:            0.000 ms
get_auth:            0.010 ms
set_privileges:      0.056 ms
get_auth:            0.001 ms

Trial #3
get_auth:            0.014 ms
get_auth:            0.005 ms
get_auth:            0.001 ms
get_auth:            0.000 ms
get_auth:            0.010 ms
set_privileges:      0.056 ms
get_auth:            0.001 ms

Trial #4
get_auth:            0.013 ms
get_auth:            0.005 ms
get_auth:            0.002 ms
get_auth:            0.000 ms
get_auth:            0.005 ms
set_privileges:      0.071 ms
get_auth:            0.001 ms

Trial #5
get_auth:            0.012 ms
get_auth:            0.005 ms
get_auth:            0.001 ms
get_auth:            0.000 ms
get_auth:            0.006 ms
set_privileges:      0.071 ms
get_auth:            0.002 ms

grant total:         0.475 ms (0.095 ms per trial)


***************************************************
*                                                 *
*  BENCHMARK RESULTS :: Minetest 0.4.16 Builtin   *
*                                                 *
***************************************************

-----------------
-- Player Join --
-----------------

Trial #1
on_prejoinplayer:     0.001 ms
get_auth:             0.016 ms
get_auth:             0.017 ms
get_auth:             0.022 ms
on_joinplayer:     4470.633 ms

Trial #2
on_prejoinplayer:     0.000 ms
get_auth:             0.009 ms
get_auth:             0.011 ms
get_auth:             0.004 ms
on_joinplayer:     5088.943 ms

Trial #3
on_prejoinplayer:     0.001 ms
get_auth:             0.009 ms
get_auth:             0.012 ms
get_auth:             0.004 ms
on_joinplayer:     4691.093 ms

Trial #4
on_prejoinplayer:     0.001 ms
get_auth:             0.01 ms
get_auth:             0.011 ms
get_auth:             0.003 ms
on_joinplayer:     4808.14 ms

Trial #5
on_prejoinplayer:     0.001 ms
get_auth:             0.009 ms
get_auth:             0.012 ms
get_auth:             0.004 ms
on_joinplayer:     4806.502 ms

grand total:      23865.468 ms (4773.094 ms per trial)

---------------------
-- NEW PLAYER JOIN --
---------------------

Trial #1
on_prejoinplayer:   242.375 ms
create_auth:       4781.226 ms
get_auth:             0.010 ms
get_auth:             0.002 ms
on_joinplayer:     4871.191 ms

Trial #2
on_prejoinplayer:   274.661 ms
create_auth:       4876.873 ms
get_auth:             0.010 ms
get_auth:             0.003 ms
on_joinplayer:     4830.267 ms

Trial #3
on_prejoinplayer:   274.616 ms
create_auth:       5079.059 ms
get_auth:             0.010 ms
get_auth:             0.003 ms
on_joinplayer:     4688.667 ms

Trial #4
on_prejoinplayer:   281.815 ms
create_auth:       5106.088 ms
get_auth:             0.011 ms
get_auth:             0.003 ms
on_joinplayer:     4859.933 ms

Trial #5
on_prejoinplayer:   314.042 ms
create_auth:       4490.457 ms
get_auth:             0.014 ms
get_auth:             0.005 ms
on_joinplayer:     4873.050 ms

grand total:      49844.391 ms (9968.878 ms per trial)

--------------------
-- SET PRIVILEGES --
--------------------

Trial #1
get_auth:             0.018 ms
get_auth:             0.008 ms
get_auth:             0.004 ms
get_auth:             0.003 ms
set_privileges:    5112.665 ms
get_auth:             0.009 ms

Trial #2
get_auth:             0.017 ms
get_auth:             0.007 ms
get_auth:             0.004 ms
get_auth:             0.002 ms
set_privileges:    4678.318 ms
get_auth:             0.010 ms

Trial #3
get_auth:             0.022 ms
get_auth:             0.009 ms
get_auth:             0.004 ms
get_auth:             0.002 ms
set_privileges:    4772.478 ms
get_auth:             0.010 ms

Trial #4
get_auth:             0.021 ms
get_auth:             0.009 ms
get_auth:             0.003 ms
get_auth:             0.003 ms
set_privileges:    4752.323 ms
get_auth:             0.011 ms

Trial #5
get_auth:             0.020 ms
get_auth:             0.009 ms
get_auth:             0.003 ms
get_auth:             0.002 ms
set_privileges:    4820.505 ms
get_auth:             0.010 ms

grand total:      24136.500 ms (4827.300 ms per trial)


***************************************************
*                                                 *
*  BENCHMARK RESULTS :: Minetest 5.0 Builtin      *
*                                                 *
***************************************************

-----------------
-- Player Join --
-----------------

Trial #1
on_prejoinplayer:     0.290 ms
get_auth:             0.040 ms
get_auth:             0.053 ms
get_auth:             0.036 ms
on_joinplayer:       64.240 ms
get_auth:             0.075 ms
get_auth:             0.031 ms
get_auth:             0.029 ms
get_auth:             0.028 ms
get_auth:             0.025 ms
get_auth:             0.029 ms
get_auth:             0.029 ms

Trial #2
on_prejoinplayer:     0.075 ms
get_auth:             0.039 ms
get_auth:             0.046 ms
get_auth:             0.030 ms
on_joinplayer:       61.444 ms
get_auth:             0.057 ms
get_auth:             0.024 ms
get_auth:             0.023 ms
get_auth:             0.022 ms
get_auth:             0.020 ms
get_auth:             0.024 ms
get_auth:             0.024 ms

Trial #3
on_prejoinplayer:     0.078 ms
get_auth:             0.028 ms
get_auth:             0.047 ms
get_auth:             0.026 ms
on_joinplayer:       73.072 ms
get_auth:             0.058 ms
get_auth:             0.023 ms
get_auth:             0.020 ms
get_auth:             0.019 ms
get_auth:             0.019 ms
get_auth:             0.022 ms
get_auth:             0.033 ms

Trial #4
on_prejoinplayer:     0.077 ms
get_auth:             0.026 ms
get_auth:             0.048 ms
get_auth:             0.026 ms
on_joinplayer:       94.677 ms
get_auth:             0.056 ms
get_auth:             0.024 ms
get_auth:             0.021 ms
get_auth:             0.019 ms
get_auth:             0.019 ms
get_auth:             0.022 ms
get_auth:             0.023 ms

Trial #5
on_prejoinplayer:     0.076 ms
get_auth:             0.050 ms
get_auth:             0.045 ms
get_auth:             0.026 ms
on_joinplayer:       50.702 ms
get_auth:             0.058 ms
get_auth:             0.023 ms
get_auth:             0.020 ms
get_auth:             0.020 ms
get_auth:             0.019 ms
get_auth:             0.025 ms
get_auth:             0.023 ms

grand total:	    346.303 ms (69.260 ms per trial)

---------------------
-- NEW PLAYER JOIN --
---------------------

Trial #1
on_prejoinplayer:   776.039 ms
create_auth:          0.008 ms
get_auth:             0.05 ms
get_auth:             0.028 ms
on_joinplayer:       60.969 ms
get_auth:             0.061 ms
get_auth:             0.023 ms
get_auth:             0.02 ms
get_auth:             0.019 ms
get_auth:             0.06 ms
get_auth:             0.025 ms
get_auth:             0.023 ms

Trial #2
on_prejoinplayer:   736.077 ms
create_auth:          0.008 ms
get_auth:             0.050 ms
get_auth:             0.025 ms
on_joinplayer:       52.891 ms
get_auth:             0.060 ms
get_auth:             0.022 ms
get_auth:             0.020 ms
get_auth:             0.019 ms
get_auth:             0.018 ms
get_auth:             0.022 ms
get_auth:             0.023 ms

Trial #3
on_prejoinplayer:   729.159 ms
create_auth:          0.008 ms
get_auth:             0.614 ms
get_auth:             0.028 ms
on_joinplayer:       74.917 ms
get_auth:             0.059 ms
get_auth:             0.023 ms
get_auth:             0.021 ms
get_auth:             0.033 ms
get_auth:             0.034 ms
get_auth:             0.024 ms
get_auth:             0.023 ms

Trial #4
on_prejoinplayer:   822.92 ms
create_auth:          0.007 ms
get_auth:             0.051 ms
get_auth:             0.026 ms
on_joinplayer:       65.927 ms
get_auth:             0.06 ms
get_auth:             0.024 ms
get_auth:             0.021 ms
get_auth:             0.019 ms
get_auth:             0.019 ms
get_auth:             0.022 ms
get_auth:             0.023 ms

Trial #5
on_prejoinplayer:   588.514 ms
create_auth:          0.007 ms
get_auth:             0.049 ms
get_auth:             0.025 ms
on_joinplayer:       57.614 ms
get_auth:             0.059 ms
get_auth:             0.022 ms
get_auth:             0.021 ms
get_auth:             0.02 ms
get_auth:             0.018 ms
get_auth:             0.022 ms
get_auth:             0.039 ms

grand total:       3967.030 ms (793.406 ms per trial)

--------------------
-- SET PRIVILEGES --
--------------------

Trial #1
get_auth:             0.085 ms
get_auth:             0.030 ms
get_auth:             0.039 ms
get_auth:             0.021 ms
set_privileges:      62.812 ms
get_auth:             0.056 ms

Trial #2
get_auth:             0.086 ms
get_auth:             0.032 ms
get_auth:             0.038 ms
get_auth:             0.023 ms
set_privileges:      63.765 ms
get_auth:             0.057 ms

Trial #3
get_auth:             0.084 ms
get_auth:             0.031 ms
get_auth:             0.034 ms
get_auth:             0.021 ms
set_privileges:      68.226 ms
get_auth:             0.057 ms

Trial #4
get_auth:             0.083 ms
get_auth:             0.031 ms
get_auth:             0.035 ms
get_auth:             0.021 ms
set_privileges:      56.744 ms
get_auth:             0.056 ms

Trial #5
get_auth:             0.084 ms
get_auth:             0.031 ms
get_auth:             0.033 ms
get_auth:             0.021 ms
set_privileges:      64.044 ms
get_auth:             0.055 ms

grand total:        316.735 ms (63.347 ms per trial)

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.