-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbenchmark_read_results.txt
1547 lines (1530 loc) · 115 KB
/
benchmark_read_results.txt
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
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
Trials for
employee: Tony Stark, CEO (id: 1, depth: 0)
worker : Tony Stark, CEO (id: 1, depth: 0)
employee: employee.ancestors.count (0)
worker : worker.ancestors.count (0)
employee: employee.children.count (46)
worker : worker.children.count (46)
employee: employee.siblings.count (1)
worker : worker.siblings.count (0)
employee: employee.descendants.count (308308)
worker : worker.descendants.count (308308)
Rehearsal -----------------------------------------------------------------------
ancestry.parent.to_s 0.010000 0.000000 0.010000 ( 0.004963)
closure_tree.parent.to_s 0.000000 0.000000 0.000000 ( 0.006791)
ancestry.root.to_s 0.010000 0.000000 0.010000 ( 0.004103)
closure_tree.root.to_s 0.020000 0.000000 0.020000 ( 0.028040)
ancestry.depth.to_s 0.000000 0.000000 0.000000 ( 0.003984)
closure_tree.depth.to_s 0.020000 0.000000 0.020000 ( 0.028411)
ancestry.ancestors.to_a 0.010000 0.000000 0.010000 ( 0.012157)
closure_tree.ancestors.to_a 0.020000 0.000000 0.020000 ( 0.028593)
ancestry.ancestors.pluck(:id) 0.010000 0.000000 0.010000 ( 0.011622)
closure_tree.ancestors.pluck(:id) 0.020000 0.010000 0.030000 ( 0.027682)
ancestry.ancestors.size 0.010000 0.000000 0.010000 ( 0.021055)
closure_tree.ancestors.size 0.020000 0.000000 0.020000 ( 0.022407)
ancestry.ancestors.count 0.010000 0.000000 0.010000 ( 0.018149)
closure_tree.ancestors.count 0.020000 0.000000 0.020000 ( 0.031217)
ancestry.children.to_a 0.020000 0.000000 0.020000 ( 0.027888)
closure_tree.children.to_a 0.030000 0.000000 0.030000 ( 0.037837)
ancestry.children.pluck(:id) 0.010000 0.000000 0.010000 ( 0.013872)
closure_tree.children.pluck(:id) 0.010000 0.010000 0.020000 ( 0.025204)
ancestry.children.size 0.010000 0.000000 0.010000 ( 0.012821)
closure_tree.children.size 0.020000 0.000000 0.020000 ( 0.018679)
ancestry.children.count 0.010000 0.000000 0.010000 ( 0.012642)
closure_tree.children.count 0.010000 0.000000 0.010000 ( 0.018338)
ancestry.siblings.to_a 0.010000 0.000000 0.010000 ( 0.012898)
closure_tree.siblings.to_a 0.010000 0.000000 0.010000 ( 0.014853)
ancestry.siblings.pluck(:id) 0.010000 0.000000 0.010000 ( 0.014319)
closure_tree.siblings.pluck(:id) 0.010000 0.000000 0.010000 ( 0.012597)
ancestry.siblings.size 0.010000 0.000000 0.010000 ( 0.014679)
closure_tree.siblings.size 0.010000 0.010000 0.020000 ( 0.013463)
ancestry.siblings.count 0.000000 0.000000 0.000000 ( 0.014248)
closure_tree.siblings.count 0.020000 0.000000 0.020000 ( 0.016657)
ancestry.descendants.to_a 55.780000 4.440000 60.220000 ( 69.892673)
closure_tree.descendants.to_a 51.000000 4.500000 55.500000 ( 73.246544)
ancestry.descendants.pluck(:id) 3.990000 0.820000 4.810000 ( 8.540232)
closure_tree.descendants.pluck(:id) 2.790000 0.160000 2.950000 ( 12.760548)
ancestry.descendants.size 0.010000 0.000000 0.010000 ( 3.625083)
closure_tree.descendants.size 0.020000 0.000000 0.020000 ( 8.062242)
ancestry.descendants.count 0.010000 0.000000 0.010000 ( 3.263754)
closure_tree.descendants.count 0.020000 0.000000 0.020000 ( 9.725905)
------------------------------------------------------------ total: 123.950000sec
user system total real
ancestry.parent.to_s 0.010000 0.000000 0.010000 ( 0.003815)
closure_tree.parent.to_s 0.000000 0.000000 0.000000 ( 0.003699)
ancestry.root.to_s 0.010000 0.000000 0.010000 ( 0.003278)
closure_tree.root.to_s 0.010000 0.000000 0.010000 ( 0.014950)
ancestry.depth.to_s 0.010000 0.000000 0.010000 ( 0.003272)
closure_tree.depth.to_s 0.010000 0.000000 0.010000 ( 0.018943)
ancestry.ancestors.to_a 0.010000 0.000000 0.010000 ( 0.013270)
closure_tree.ancestors.to_a 0.020000 0.010000 0.030000 ( 0.019353)
ancestry.ancestors.pluck(:id) 0.010000 0.000000 0.010000 ( 0.012174)
closure_tree.ancestors.pluck(:id) 0.020000 0.000000 0.020000 ( 0.020888)
ancestry.ancestors.size 0.010000 0.000000 0.010000 ( 0.013858)
closure_tree.ancestors.size 0.020000 0.000000 0.020000 ( 0.022772)
ancestry.ancestors.count 0.020000 0.000000 0.020000 ( 0.018079)
closure_tree.ancestors.count 0.020000 0.000000 0.020000 ( 0.028548)
ancestry.children.to_a 0.020000 0.010000 0.030000 ( 0.029991)
closure_tree.children.to_a 0.030000 0.000000 0.030000 ( 0.038212)
ancestry.children.pluck(:id) 0.020000 0.000000 0.020000 ( 0.019661)
closure_tree.children.pluck(:id) 0.010000 0.000000 0.010000 ( 0.020278)
ancestry.children.size 0.010000 0.000000 0.010000 ( 0.023155)
closure_tree.children.size 0.020000 0.010000 0.030000 ( 0.020782)
ancestry.children.count 0.000000 0.000000 0.000000 ( 0.014805)
closure_tree.children.count 0.020000 0.000000 0.020000 ( 0.025613)
ancestry.siblings.to_a 0.010000 0.000000 0.010000 ( 0.022694)
closure_tree.siblings.to_a 0.010000 0.000000 0.010000 ( 0.021168)
ancestry.siblings.pluck(:id) 0.010000 0.010000 0.020000 ( 0.016734)
closure_tree.siblings.pluck(:id) 0.010000 0.000000 0.010000 ( 0.017719)
ancestry.siblings.size 0.010000 0.000000 0.010000 ( 0.013506)
closure_tree.siblings.size 0.010000 0.000000 0.010000 ( 0.013109)
ancestry.siblings.count 0.010000 0.000000 0.010000 ( 0.013402)
closure_tree.siblings.count 0.010000 0.000000 0.010000 ( 0.015055)
ancestry.descendants.to_a 60.180000 6.650000 66.830000 ( 77.726840)
closure_tree.descendants.to_a 50.750000 3.250000 54.000000 ( 74.507438)
ancestry.descendants.pluck(:id) 2.690000 1.970000 4.660000 ( 8.085411)
closure_tree.descendants.pluck(:id) 2.550000 0.110000 2.660000 ( 14.282516)
ancestry.descendants.size 0.010000 0.000000 0.010000 ( 3.306063)
closure_tree.descendants.size 0.020000 0.000000 0.020000 ( 9.651189)
ancestry.descendants.count 0.010000 0.000000 0.010000 ( 3.280366)
closure_tree.descendants.count 0.010000 0.000000 0.010000 ( 9.474171)
Trials for
employee: Rhea Huels, President (id: 177138, depth: 1)
worker : Rhea Huels, President (id: 177138, depth: 1)
employee: employee.ancestors.count (1)
worker : worker.ancestors.count (1)
employee: employee.children.count (1)
worker : worker.children.count (1)
employee: employee.siblings.count (46)
worker : worker.siblings.count (45)
employee: employee.descendants.count (1)
worker : worker.descendants.count (1)
Rehearsal -----------------------------------------------------------------------
ancestry.parent.to_s 0.010000 0.000000 0.010000 ( 0.009864)
closure_tree.parent.to_s 0.010000 0.000000 0.010000 ( 0.011348)
ancestry.root.to_s 0.010000 0.010000 0.020000 ( 0.015968)
closure_tree.root.to_s 0.010000 0.000000 0.010000 ( 0.017007)
ancestry.depth.to_s 0.010000 0.000000 0.010000 ( 0.003654)
closure_tree.depth.to_s 0.010000 0.000000 0.010000 ( 0.018648)
ancestry.ancestors.to_a 0.010000 0.000000 0.010000 ( 0.014422)
closure_tree.ancestors.to_a 0.010000 0.000000 0.010000 ( 0.020192)
ancestry.ancestors.pluck(:id) 0.010000 0.000000 0.010000 ( 0.012316)
closure_tree.ancestors.pluck(:id) 0.010000 0.000000 0.010000 ( 0.015719)
ancestry.ancestors.size 0.010000 0.000000 0.010000 ( 0.012440)
closure_tree.ancestors.size 0.020000 0.000000 0.020000 ( 0.018815)
ancestry.ancestors.count 0.000000 0.000000 0.000000 ( 0.011416)
closure_tree.ancestors.count 0.020000 0.000000 0.020000 ( 0.019095)
ancestry.children.to_a 0.010000 0.000000 0.010000 ( 0.010655)
closure_tree.children.to_a 0.010000 0.000000 0.010000 ( 0.016315)
ancestry.children.pluck(:id) 0.010000 0.000000 0.010000 ( 0.010313)
closure_tree.children.pluck(:id) 0.010000 0.010000 0.020000 ( 0.012512)
ancestry.children.size 0.000000 0.000000 0.000000 ( 0.013001)
closure_tree.children.size 0.000000 0.000000 0.000000 ( 0.012230)
ancestry.children.count 0.010000 0.000000 0.010000 ( 0.013269)
closure_tree.children.count 0.010000 0.000000 0.010000 ( 0.014932)
ancestry.siblings.to_a 0.010000 0.000000 0.010000 ( 0.019592)
closure_tree.siblings.to_a 0.010000 0.000000 0.010000 ( 0.018483)
ancestry.siblings.pluck(:id) 0.010000 0.000000 0.010000 ( 0.012435)
closure_tree.siblings.pluck(:id) 0.010000 0.000000 0.010000 ( 0.011241)
ancestry.siblings.size 0.000000 0.000000 0.000000 ( 0.012027)
closure_tree.siblings.size 0.010000 0.000000 0.010000 ( 0.014686)
ancestry.siblings.count 0.010000 0.000000 0.010000 ( 0.011155)
closure_tree.siblings.count 0.010000 0.000000 0.010000 ( 0.012423)
ancestry.descendants.to_a 0.010000 0.000000 0.010000 ( 3.531020)
closure_tree.descendants.to_a 0.020000 0.010000 0.030000 ( 0.019619)
ancestry.descendants.pluck(:id) 0.010000 0.000000 0.010000 ( 3.498480)
closure_tree.descendants.pluck(:id) 0.010000 0.000000 0.010000 ( 0.022327)
ancestry.descendants.size 0.010000 0.000000 0.010000 ( 3.477480)
closure_tree.descendants.size 0.020000 0.000000 0.020000 ( 0.017365)
ancestry.descendants.count 0.010000 0.000000 0.010000 ( 3.479797)
closure_tree.descendants.count 0.010000 0.000000 0.010000 ( 0.021669)
-------------------------------------------------------------- total: 0.410000sec
user system total real
ancestry.parent.to_s 0.010000 0.000000 0.010000 ( 0.013272)
closure_tree.parent.to_s 0.010000 0.000000 0.010000 ( 0.007925)
ancestry.root.to_s 0.010000 0.000000 0.010000 ( 0.009846)
closure_tree.root.to_s 0.010000 0.000000 0.010000 ( 0.018031)
ancestry.depth.to_s 0.000000 0.000000 0.000000 ( 0.004479)
closure_tree.depth.to_s 0.020000 0.000000 0.020000 ( 0.023111)
ancestry.ancestors.to_a 0.010000 0.000000 0.010000 ( 0.013170)
closure_tree.ancestors.to_a 0.020000 0.010000 0.030000 ( 0.026626)
ancestry.ancestors.pluck(:id) 0.010000 0.000000 0.010000 ( 0.010236)
closure_tree.ancestors.pluck(:id) 0.010000 0.000000 0.010000 ( 0.016848)
ancestry.ancestors.size 0.010000 0.000000 0.010000 ( 0.011735)
closure_tree.ancestors.size 0.010000 0.000000 0.010000 ( 0.018493)
ancestry.ancestors.count 0.010000 0.000000 0.010000 ( 0.017149)
closure_tree.ancestors.count 0.020000 0.000000 0.020000 ( 0.018499)
ancestry.children.to_a 0.010000 0.000000 0.010000 ( 0.016120)
closure_tree.children.to_a 0.010000 0.000000 0.010000 ( 0.014966)
ancestry.children.pluck(:id) 0.000000 0.000000 0.000000 ( 0.013132)
closure_tree.children.pluck(:id) 0.010000 0.010000 0.020000 ( 0.010807)
ancestry.children.size 0.010000 0.000000 0.010000 ( 0.014615)
closure_tree.children.size 0.010000 0.000000 0.010000 ( 0.014602)
ancestry.children.count 0.010000 0.000000 0.010000 ( 0.013404)
closure_tree.children.count 0.010000 0.000000 0.010000 ( 0.017723)
ancestry.siblings.to_a 0.020000 0.000000 0.020000 ( 0.026400)
closure_tree.siblings.to_a 0.010000 0.000000 0.010000 ( 0.020007)
ancestry.siblings.pluck(:id) 0.000000 0.000000 0.000000 ( 0.013788)
closure_tree.siblings.pluck(:id) 0.010000 0.000000 0.010000 ( 0.014023)
ancestry.siblings.size 0.010000 0.000000 0.010000 ( 0.012460)
closure_tree.siblings.size 0.010000 0.000000 0.010000 ( 0.012807)
ancestry.siblings.count 0.010000 0.010000 0.020000 ( 0.013745)
closure_tree.siblings.count 0.010000 0.000000 0.010000 ( 0.012294)
ancestry.descendants.to_a 0.010000 0.000000 0.010000 ( 3.493679)
closure_tree.descendants.to_a 0.020000 0.000000 0.020000 ( 0.020655)
ancestry.descendants.pluck(:id) 0.010000 0.000000 0.010000 ( 3.465863)
closure_tree.descendants.pluck(:id) 0.010000 0.000000 0.010000 ( 0.019632)
ancestry.descendants.size 0.010000 0.000000 0.010000 ( 3.507442)
closure_tree.descendants.size 0.020000 0.000000 0.020000 ( 0.019474)
ancestry.descendants.count 0.010000 0.000000 0.010000 ( 3.467663)
closure_tree.descendants.count 0.020000 0.000000 0.020000 ( 0.023224)
Trials for
employee: Edd Feil, Country Director (id: 116041, depth: 2)
worker : Edd Feil, Country Director (id: 116041, depth: 2)
employee: employee.ancestors.count (2)
worker : worker.ancestors.count (2)
employee: employee.children.count (4)
worker : worker.children.count (4)
employee: employee.siblings.count (3)
worker : worker.siblings.count (2)
employee: employee.descendants.count (11)
worker : worker.descendants.count (11)
Rehearsal -----------------------------------------------------------------------
ancestry.parent.to_s 0.000000 0.010000 0.010000 ( 0.008239)
closure_tree.parent.to_s 0.010000 0.000000 0.010000 ( 0.011628)
ancestry.root.to_s 0.010000 0.000000 0.010000 ( 0.012572)
closure_tree.root.to_s 0.020000 0.000000 0.020000 ( 0.018250)
ancestry.depth.to_s 0.000000 0.000000 0.000000 ( 0.003925)
closure_tree.depth.to_s 0.010000 0.000000 0.010000 ( 0.019113)
ancestry.ancestors.to_a 0.010000 0.000000 0.010000 ( 0.014221)
closure_tree.ancestors.to_a 0.020000 0.000000 0.020000 ( 0.019632)
ancestry.ancestors.pluck(:id) 0.010000 0.000000 0.010000 ( 0.018350)
closure_tree.ancestors.pluck(:id) 0.010000 0.000000 0.010000 ( 0.019791)
ancestry.ancestors.size 0.010000 0.000000 0.010000 ( 0.013905)
closure_tree.ancestors.size 0.020000 0.000000 0.020000 ( 0.018330)
ancestry.ancestors.count 0.010000 0.000000 0.010000 ( 0.013650)
closure_tree.ancestors.count 0.010000 0.010000 0.020000 ( 0.016937)
ancestry.children.to_a 0.010000 0.000000 0.010000 ( 0.015036)
closure_tree.children.to_a 0.010000 0.000000 0.010000 ( 0.012705)
ancestry.children.pluck(:id) 0.010000 0.000000 0.010000 ( 0.013161)
closure_tree.children.pluck(:id) 0.010000 0.000000 0.010000 ( 0.012782)
ancestry.children.size 0.010000 0.000000 0.010000 ( 0.011325)
closure_tree.children.size 0.010000 0.000000 0.010000 ( 0.016885)
ancestry.children.count 0.010000 0.000000 0.010000 ( 0.010037)
closure_tree.children.count 0.010000 0.000000 0.010000 ( 0.015772)
ancestry.siblings.to_a 0.010000 0.000000 0.010000 ( 0.012113)
closure_tree.siblings.to_a 0.000000 0.000000 0.000000 ( 0.008980)
ancestry.siblings.pluck(:id) 0.010000 0.000000 0.010000 ( 0.012411)
closure_tree.siblings.pluck(:id) 0.010000 0.000000 0.010000 ( 0.010794)
ancestry.siblings.size 0.000000 0.000000 0.000000 ( 0.009350)
closure_tree.siblings.size 0.010000 0.010000 0.020000 ( 0.014235)
ancestry.siblings.count 0.010000 0.000000 0.010000 ( 0.011766)
closure_tree.siblings.count 0.010000 0.000000 0.010000 ( 0.013113)
ancestry.descendants.to_a 0.020000 0.000000 0.020000 ( 3.650322)
closure_tree.descendants.to_a 0.010000 0.000000 0.010000 ( 0.019617)
ancestry.descendants.pluck(:id) 0.010000 0.000000 0.010000 ( 3.578087)
closure_tree.descendants.pluck(:id) 0.010000 0.000000 0.010000 ( 0.016697)
ancestry.descendants.size 0.010000 0.000000 0.010000 ( 3.643916)
closure_tree.descendants.size 0.020000 0.000000 0.020000 ( 0.017487)
ancestry.descendants.count 0.010000 0.000000 0.010000 ( 3.563510)
closure_tree.descendants.count 0.010000 0.000000 0.010000 ( 0.021451)
-------------------------------------------------------------- total: 0.420000sec
user system total real
ancestry.parent.to_s 0.010000 0.000000 0.010000 ( 0.013754)
closure_tree.parent.to_s 0.010000 0.000000 0.010000 ( 0.011101)
ancestry.root.to_s 0.010000 0.000000 0.010000 ( 0.010055)
closure_tree.root.to_s 0.020000 0.000000 0.020000 ( 0.019023)
ancestry.depth.to_s 0.000000 0.000000 0.000000 ( 0.007657)
closure_tree.depth.to_s 0.020000 0.000000 0.020000 ( 0.020308)
ancestry.ancestors.to_a 0.010000 0.000000 0.010000 ( 0.019442)
closure_tree.ancestors.to_a 0.020000 0.010000 0.030000 ( 0.019012)
ancestry.ancestors.pluck(:id) 0.010000 0.000000 0.010000 ( 0.011546)
closure_tree.ancestors.pluck(:id) 0.010000 0.000000 0.010000 ( 0.017321)
ancestry.ancestors.size 0.020000 0.000000 0.020000 ( 0.017069)
closure_tree.ancestors.size 0.020000 0.000000 0.020000 ( 0.019627)
ancestry.ancestors.count 0.010000 0.000000 0.010000 ( 0.017169)
closure_tree.ancestors.count 0.020000 0.000000 0.020000 ( 0.019969)
ancestry.children.to_a 0.020000 0.000000 0.020000 ( 0.016658)
closure_tree.children.to_a 0.020000 0.000000 0.020000 ( 0.021453)
ancestry.children.pluck(:id) 0.000000 0.000000 0.000000 ( 0.013094)
closure_tree.children.pluck(:id) 0.010000 0.000000 0.010000 ( 0.017527)
ancestry.children.size 0.010000 0.000000 0.010000 ( 0.013949)
closure_tree.children.size 0.010000 0.000000 0.010000 ( 0.019570)
ancestry.children.count 0.010000 0.000000 0.010000 ( 0.015232)
closure_tree.children.count 0.020000 0.000000 0.020000 ( 0.018150)
ancestry.siblings.to_a 0.010000 0.000000 0.010000 ( 0.012955)
closure_tree.siblings.to_a 0.000000 0.000000 0.000000 ( 0.009681)
ancestry.siblings.pluck(:id) 0.010000 0.000000 0.010000 ( 0.015435)
closure_tree.siblings.pluck(:id) 0.010000 0.000000 0.010000 ( 0.013318)
ancestry.siblings.size 0.010000 0.010000 0.020000 ( 0.013794)
closure_tree.siblings.size 0.010000 0.000000 0.010000 ( 0.011877)
ancestry.siblings.count 0.000000 0.000000 0.000000 ( 0.011119)
closure_tree.siblings.count 0.010000 0.000000 0.010000 ( 0.015885)
ancestry.descendants.to_a 0.020000 0.000000 0.020000 ( 3.537295)
closure_tree.descendants.to_a 0.020000 0.000000 0.020000 ( 0.026173)
ancestry.descendants.pluck(:id) 0.010000 0.000000 0.010000 ( 3.797346)
closure_tree.descendants.pluck(:id) 0.020000 0.000000 0.020000 ( 0.027346)
ancestry.descendants.size 0.020000 0.000000 0.020000 ( 3.793455)
closure_tree.descendants.size 0.020000 0.000000 0.020000 ( 0.023694)
ancestry.descendants.count 0.010000 0.000000 0.010000 ( 3.833991)
closure_tree.descendants.count 0.020000 0.000000 0.020000 ( 0.021689)
Trials for
employee: Korbin Kemmer, Area Director (id: 81467, depth: 3)
worker : Korbin Kemmer, Area Director (id: 81467, depth: 3)
employee: employee.ancestors.count (3)
worker : worker.ancestors.count (3)
employee: employee.children.count (1)
worker : worker.children.count (1)
employee: employee.siblings.count (2)
worker : worker.siblings.count (1)
employee: employee.descendants.count (2)
worker : worker.descendants.count (2)
Rehearsal -----------------------------------------------------------------------
ancestry.parent.to_s 0.000000 0.000000 0.000000 ( 0.009183)
closure_tree.parent.to_s 0.010000 0.000000 0.010000 ( 0.007691)
ancestry.root.to_s 0.010000 0.000000 0.010000 ( 0.007954)
closure_tree.root.to_s 0.010000 0.000000 0.010000 ( 0.017991)
ancestry.depth.to_s 0.000000 0.000000 0.000000 ( 0.004264)
closure_tree.depth.to_s 0.020000 0.000000 0.020000 ( 0.020089)
ancestry.ancestors.to_a 0.010000 0.010000 0.020000 ( 0.015360)
closure_tree.ancestors.to_a 0.010000 0.000000 0.010000 ( 0.019661)
ancestry.ancestors.pluck(:id) 0.010000 0.000000 0.010000 ( 0.013973)
closure_tree.ancestors.pluck(:id) 0.020000 0.000000 0.020000 ( 0.020676)
ancestry.ancestors.size 0.010000 0.000000 0.010000 ( 0.014191)
closure_tree.ancestors.size 0.010000 0.000000 0.010000 ( 0.017389)
ancestry.ancestors.count 0.010000 0.000000 0.010000 ( 0.015793)
closure_tree.ancestors.count 0.020000 0.000000 0.020000 ( 0.019240)
ancestry.children.to_a 0.010000 0.000000 0.010000 ( 0.014506)
closure_tree.children.to_a 0.010000 0.000000 0.010000 ( 0.013533)
ancestry.children.pluck(:id) 0.000000 0.000000 0.000000 ( 0.010570)
closure_tree.children.pluck(:id) 0.010000 0.010000 0.020000 ( 0.014364)
ancestry.children.size 0.010000 0.000000 0.010000 ( 0.015613)
closure_tree.children.size 0.020000 0.000000 0.020000 ( 0.017138)
ancestry.children.count 0.010000 0.000000 0.010000 ( 0.014123)
closure_tree.children.count 0.010000 0.000000 0.010000 ( 0.016128)
ancestry.siblings.to_a 0.010000 0.000000 0.010000 ( 0.009447)
closure_tree.siblings.to_a 0.000000 0.000000 0.000000 ( 0.013061)
ancestry.siblings.pluck(:id) 0.000000 0.000000 0.000000 ( 0.014414)
closure_tree.siblings.pluck(:id) 0.010000 0.000000 0.010000 ( 0.013108)
ancestry.siblings.size 0.010000 0.000000 0.010000 ( 0.015072)
closure_tree.siblings.size 0.010000 0.000000 0.010000 ( 0.011495)
ancestry.siblings.count 0.010000 0.000000 0.010000 ( 0.013739)
closure_tree.siblings.count 0.010000 0.010000 0.020000 ( 0.009054)
ancestry.descendants.to_a 0.010000 0.000000 0.010000 ( 3.760240)
closure_tree.descendants.to_a 0.010000 0.000000 0.010000 ( 0.017802)
ancestry.descendants.pluck(:id) 0.010000 0.000000 0.010000 ( 3.774115)
closure_tree.descendants.pluck(:id) 0.020000 0.000000 0.020000 ( 0.019082)
ancestry.descendants.size 0.010000 0.000000 0.010000 ( 3.892589)
closure_tree.descendants.size 0.010000 0.000000 0.010000 ( 0.020989)
ancestry.descendants.count 0.010000 0.000000 0.010000 ( 4.010926)
closure_tree.descendants.count 0.020000 0.000000 0.020000 ( 0.033584)
-------------------------------------------------------------- total: 0.420000sec
user system total real
ancestry.parent.to_s 0.010000 0.010000 0.020000 ( 0.023919)
closure_tree.parent.to_s 0.010000 0.000000 0.010000 ( 0.020362)
ancestry.root.to_s 0.010000 0.000000 0.010000 ( 0.017056)
closure_tree.root.to_s 0.020000 0.000000 0.020000 ( 0.026584)
ancestry.depth.to_s 0.010000 0.000000 0.010000 ( 0.007477)
closure_tree.depth.to_s 0.020000 0.010000 0.030000 ( 0.027639)
ancestry.ancestors.to_a 0.020000 0.000000 0.020000 ( 0.021158)
closure_tree.ancestors.to_a 0.020000 0.000000 0.020000 ( 0.026827)
ancestry.ancestors.pluck(:id) 0.010000 0.000000 0.010000 ( 0.018943)
closure_tree.ancestors.pluck(:id) 0.020000 0.010000 0.030000 ( 0.027309)
ancestry.ancestors.size 0.020000 0.000000 0.020000 ( 0.018223)
closure_tree.ancestors.size 0.020000 0.000000 0.020000 ( 0.027953)
ancestry.ancestors.count 0.020000 0.000000 0.020000 ( 0.024188)
closure_tree.ancestors.count 0.030000 0.000000 0.030000 ( 0.027672)
ancestry.children.to_a 0.020000 0.000000 0.020000 ( 0.021189)
closure_tree.children.to_a 0.020000 0.000000 0.020000 ( 0.022334)
ancestry.children.pluck(:id) 0.010000 0.000000 0.010000 ( 0.017080)
closure_tree.children.pluck(:id) 0.020000 0.000000 0.020000 ( 0.024794)
ancestry.children.size 0.010000 0.000000 0.010000 ( 0.023819)
closure_tree.children.size 0.020000 0.000000 0.020000 ( 0.026132)
ancestry.children.count 0.010000 0.010000 0.020000 ( 0.020116)
closure_tree.children.count 0.020000 0.000000 0.020000 ( 0.020565)
ancestry.siblings.to_a 0.010000 0.000000 0.010000 ( 0.018103)
closure_tree.siblings.to_a 0.020000 0.000000 0.020000 ( 0.021034)
ancestry.siblings.pluck(:id) 0.010000 0.000000 0.010000 ( 0.024434)
closure_tree.siblings.pluck(:id) 0.010000 0.010000 0.020000 ( 0.014712)
ancestry.siblings.size 0.020000 0.000000 0.020000 ( 0.020814)
closure_tree.siblings.size 0.020000 0.000000 0.020000 ( 0.020994)
ancestry.siblings.count 0.010000 0.000000 0.010000 ( 0.020292)
closure_tree.siblings.count 0.010000 0.000000 0.010000 ( 0.017718)
ancestry.descendants.to_a 0.010000 0.000000 0.010000 ( 4.015042)
closure_tree.descendants.to_a 0.010000 0.010000 0.020000 ( 0.024634)
ancestry.descendants.pluck(:id) 0.010000 0.000000 0.010000 ( 3.594589)
closure_tree.descendants.pluck(:id) 0.020000 0.000000 0.020000 ( 0.025358)
ancestry.descendants.size 0.010000 0.000000 0.010000 ( 3.574173)
closure_tree.descendants.size 0.020000 0.000000 0.020000 ( 0.024257)
ancestry.descendants.count 0.010000 0.000000 0.010000 ( 3.593692)
closure_tree.descendants.count 0.020000 0.000000 0.020000 ( 0.027012)
Trials for
employee: Magnus Brekke, Regional Director (id: 123870, depth: 4)
worker : Magnus Brekke, Regional Director (id: 123870, depth: 4)
employee: employee.ancestors.count (4)
worker : worker.ancestors.count (4)
employee: employee.children.count (4)
worker : worker.children.count (4)
employee: employee.siblings.count (10)
worker : worker.siblings.count (9)
employee: employee.descendants.count (6)
worker : worker.descendants.count (6)
Rehearsal -----------------------------------------------------------------------
ancestry.parent.to_s 0.010000 0.000000 0.010000 ( 0.018317)
closure_tree.parent.to_s 0.020000 0.010000 0.030000 ( 0.022850)
ancestry.root.to_s 0.010000 0.000000 0.010000 ( 0.021182)
closure_tree.root.to_s 0.030000 0.000000 0.030000 ( 0.031647)
ancestry.depth.to_s 0.000000 0.000000 0.000000 ( 0.009872)
closure_tree.depth.to_s 0.030000 0.000000 0.030000 ( 0.041270)
ancestry.ancestors.to_a 0.020000 0.000000 0.020000 ( 0.025168)
closure_tree.ancestors.to_a 0.020000 0.000000 0.020000 ( 0.034615)
ancestry.ancestors.pluck(:id) 0.020000 0.000000 0.020000 ( 0.021740)
closure_tree.ancestors.pluck(:id) 0.020000 0.010000 0.030000 ( 0.040108)
ancestry.ancestors.size 0.020000 0.000000 0.020000 ( 0.029093)
closure_tree.ancestors.size 0.020000 0.000000 0.020000 ( 0.036599)
ancestry.ancestors.count 0.020000 0.000000 0.020000 ( 0.023742)
closure_tree.ancestors.count 0.030000 0.000000 0.030000 ( 0.037880)
ancestry.children.to_a 0.010000 0.000000 0.010000 ( 0.025378)
closure_tree.children.to_a 0.020000 0.000000 0.020000 ( 0.024482)
ancestry.children.pluck(:id) 0.010000 0.010000 0.020000 ( 0.018522)
closure_tree.children.pluck(:id) 0.010000 0.000000 0.010000 ( 0.019215)
ancestry.children.size 0.020000 0.000000 0.020000 ( 0.018988)
closure_tree.children.size 0.020000 0.000000 0.020000 ( 0.024606)
ancestry.children.count 0.010000 0.000000 0.010000 ( 0.019489)
closure_tree.children.count 0.020000 0.000000 0.020000 ( 0.025149)
ancestry.siblings.to_a 0.010000 0.000000 0.010000 ( 0.018690)
closure_tree.siblings.to_a 0.010000 0.000000 0.010000 ( 0.020053)
ancestry.siblings.pluck(:id) 0.010000 0.000000 0.010000 ( 0.019802)
closure_tree.siblings.pluck(:id) 0.020000 0.010000 0.030000 ( 0.017777)
ancestry.siblings.size 0.010000 0.000000 0.010000 ( 0.021600)
closure_tree.siblings.size 0.010000 0.000000 0.010000 ( 0.019571)
ancestry.siblings.count 0.010000 0.000000 0.010000 ( 0.019421)
closure_tree.siblings.count 0.020000 0.000000 0.020000 ( 0.021603)
ancestry.descendants.to_a 0.010000 0.000000 0.010000 ( 3.779259)
closure_tree.descendants.to_a 0.020000 0.000000 0.020000 ( 0.027925)
ancestry.descendants.pluck(:id) 0.020000 0.000000 0.020000 ( 3.873295)
closure_tree.descendants.pluck(:id) 0.020000 0.000000 0.020000 ( 0.036512)
ancestry.descendants.size 0.010000 0.010000 0.020000 ( 3.773747)
closure_tree.descendants.size 0.020000 0.000000 0.020000 ( 0.024993)
ancestry.descendants.count 0.010000 0.000000 0.010000 ( 3.833359)
closure_tree.descendants.count 0.020000 0.000000 0.020000 ( 0.025072)
-------------------------------------------------------------- total: 0.670000sec
user system total real
ancestry.parent.to_s 0.010000 0.000000 0.010000 ( 0.014115)
closure_tree.parent.to_s 0.010000 0.000000 0.010000 ( 0.014441)
ancestry.root.to_s 0.010000 0.000000 0.010000 ( 0.014967)
closure_tree.root.to_s 0.020000 0.000000 0.020000 ( 0.022857)
ancestry.depth.to_s 0.000000 0.010000 0.010000 ( 0.006827)
closure_tree.depth.to_s 0.020000 0.000000 0.020000 ( 0.022704)
ancestry.ancestors.to_a 0.020000 0.000000 0.020000 ( 0.016950)
closure_tree.ancestors.to_a 0.020000 0.000000 0.020000 ( 0.020662)
ancestry.ancestors.pluck(:id) 0.010000 0.000000 0.010000 ( 0.016818)
closure_tree.ancestors.pluck(:id) 0.010000 0.000000 0.010000 ( 0.016697)
ancestry.ancestors.size 0.010000 0.000000 0.010000 ( 0.016937)
closure_tree.ancestors.size 0.020000 0.000000 0.020000 ( 0.021348)
ancestry.ancestors.count 0.010000 0.010000 0.020000 ( 0.018808)
closure_tree.ancestors.count 0.010000 0.000000 0.010000 ( 0.020223)
ancestry.children.to_a 0.010000 0.000000 0.010000 ( 0.016035)
closure_tree.children.to_a 0.010000 0.000000 0.010000 ( 0.025151)
ancestry.children.pluck(:id) 0.010000 0.000000 0.010000 ( 0.015039)
closure_tree.children.pluck(:id) 0.020000 0.000000 0.020000 ( 0.031950)
ancestry.children.size 0.010000 0.000000 0.010000 ( 0.039711)
closure_tree.children.size 0.010000 0.000000 0.010000 ( 0.018294)
ancestry.children.count 0.010000 0.010000 0.020000 ( 0.018031)
closure_tree.children.count 0.020000 0.000000 0.020000 ( 0.017677)
ancestry.siblings.to_a 0.010000 0.000000 0.010000 ( 0.016949)
closure_tree.siblings.to_a 0.010000 0.000000 0.010000 ( 0.016158)
ancestry.siblings.pluck(:id) 0.010000 0.000000 0.010000 ( 0.017237)
closure_tree.siblings.pluck(:id) 0.010000 0.000000 0.010000 ( 0.013675)
ancestry.siblings.size 0.020000 0.000000 0.020000 ( 0.023406)
closure_tree.siblings.size 0.020000 0.010000 0.030000 ( 0.020867)
ancestry.siblings.count 0.010000 0.000000 0.010000 ( 0.023739)
closure_tree.siblings.count 0.010000 0.000000 0.010000 ( 0.025481)
ancestry.descendants.to_a 0.010000 0.000000 0.010000 ( 3.870085)
closure_tree.descendants.to_a 0.020000 0.000000 0.020000 ( 0.022217)
ancestry.descendants.pluck(:id) 0.010000 0.000000 0.010000 ( 4.024264)
closure_tree.descendants.pluck(:id) 0.020000 0.010000 0.030000 ( 0.028694)
ancestry.descendants.size 0.020000 0.000000 0.020000 ( 3.799939)
closure_tree.descendants.size 0.020000 0.000000 0.020000 ( 0.026863)
ancestry.descendants.count 0.010000 0.000000 0.010000 ( 3.994716)
closure_tree.descendants.count 0.020000 0.000000 0.020000 ( 0.027264)
Trials for
employee: Larry Korbin, Site Director (id: 9914, depth: 5)
worker : Larry Korbin, Site Director (id: 9914, depth: 5)
employee: employee.ancestors.count (5)
worker : worker.ancestors.count (5)
employee: employee.children.count (10)
worker : worker.children.count (10)
employee: employee.siblings.count (10)
worker : worker.siblings.count (9)
employee: employee.descendants.count (317)
worker : worker.descendants.count (317)
Rehearsal -----------------------------------------------------------------------
ancestry.parent.to_s 0.020000 0.000000 0.020000 ( 0.022244)
closure_tree.parent.to_s 0.020000 0.010000 0.030000 ( 0.035236)
ancestry.root.to_s 0.020000 0.000000 0.020000 ( 0.034263)
closure_tree.root.to_s 0.030000 0.000000 0.030000 ( 0.045567)
ancestry.depth.to_s 0.000000 0.000000 0.000000 ( 0.007151)
closure_tree.depth.to_s 0.030000 0.000000 0.030000 ( 0.035517)
ancestry.ancestors.to_a 0.010000 0.000000 0.010000 ( 0.026267)
closure_tree.ancestors.to_a 0.030000 0.000000 0.030000 ( 0.037176)
ancestry.ancestors.pluck(:id) 0.010000 0.010000 0.020000 ( 0.023919)
closure_tree.ancestors.pluck(:id) 0.030000 0.000000 0.030000 ( 0.036364)
ancestry.ancestors.size 0.020000 0.000000 0.020000 ( 0.028087)
closure_tree.ancestors.size 0.020000 0.000000 0.020000 ( 0.036845)
ancestry.ancestors.count 0.020000 0.000000 0.020000 ( 0.028403)
closure_tree.ancestors.count 0.020000 0.000000 0.020000 ( 0.038682)
ancestry.children.to_a 0.020000 0.010000 0.030000 ( 0.028077)
closure_tree.children.to_a 0.030000 0.000000 0.030000 ( 0.041250)
ancestry.children.pluck(:id) 0.010000 0.000000 0.010000 ( 0.023522)
closure_tree.children.pluck(:id) 0.020000 0.000000 0.020000 ( 0.033172)
ancestry.children.size 0.020000 0.000000 0.020000 ( 0.030034)
closure_tree.children.size 0.020000 0.000000 0.020000 ( 0.029108)
ancestry.children.count 0.010000 0.000000 0.010000 ( 0.022101)
closure_tree.children.count 0.020000 0.010000 0.030000 ( 0.023685)
ancestry.siblings.to_a 0.010000 0.000000 0.010000 ( 0.021807)
closure_tree.siblings.to_a 0.010000 0.000000 0.010000 ( 0.023921)
ancestry.siblings.pluck(:id) 0.010000 0.000000 0.010000 ( 0.012033)
closure_tree.siblings.pluck(:id) 0.010000 0.000000 0.010000 ( 0.015992)
ancestry.siblings.size 0.010000 0.000000 0.010000 ( 0.012969)
closure_tree.siblings.size 0.010000 0.000000 0.010000 ( 0.015637)
ancestry.siblings.count 0.020000 0.000000 0.020000 ( 0.020241)
closure_tree.siblings.count 0.010000 0.000000 0.010000 ( 0.016497)
ancestry.descendants.to_a 0.040000 0.010000 0.050000 ( 3.720168)
closure_tree.descendants.to_a 0.050000 0.000000 0.050000 ( 0.075915)
ancestry.descendants.pluck(:id) 0.010000 0.000000 0.010000 ( 3.706107)
closure_tree.descendants.pluck(:id) 0.020000 0.000000 0.020000 ( 0.036126)
ancestry.descendants.size 0.020000 0.000000 0.020000 ( 3.717604)
closure_tree.descendants.size 0.010000 0.000000 0.010000 ( 0.034033)
ancestry.descendants.count 0.020000 0.000000 0.020000 ( 3.668565)
closure_tree.descendants.count 0.010000 0.000000 0.010000 ( 0.033370)
-------------------------------------------------------------- total: 0.750000sec
user system total real
ancestry.parent.to_s 0.010000 0.010000 0.020000 ( 0.012786)
closure_tree.parent.to_s 0.010000 0.000000 0.010000 ( 0.011010)
ancestry.root.to_s 0.010000 0.000000 0.010000 ( 0.016657)
closure_tree.root.to_s 0.020000 0.000000 0.020000 ( 0.017696)
ancestry.depth.to_s 0.000000 0.000000 0.000000 ( 0.006009)
closure_tree.depth.to_s 0.010000 0.000000 0.010000 ( 0.020550)
ancestry.ancestors.to_a 0.010000 0.000000 0.010000 ( 0.015899)
closure_tree.ancestors.to_a 0.020000 0.000000 0.020000 ( 0.020903)
ancestry.ancestors.pluck(:id) 0.010000 0.000000 0.010000 ( 0.016652)
closure_tree.ancestors.pluck(:id) 0.010000 0.010000 0.020000 ( 0.018482)
ancestry.ancestors.size 0.010000 0.000000 0.010000 ( 0.016166)
closure_tree.ancestors.size 0.020000 0.000000 0.020000 ( 0.018920)
ancestry.ancestors.count 0.010000 0.000000 0.010000 ( 0.016110)
closure_tree.ancestors.count 0.020000 0.000000 0.020000 ( 0.017921)
ancestry.children.to_a 0.010000 0.000000 0.010000 ( 0.015924)
closure_tree.children.to_a 0.010000 0.000000 0.010000 ( 0.017391)
ancestry.children.pluck(:id) 0.010000 0.000000 0.010000 ( 0.013076)
closure_tree.children.pluck(:id) 0.020000 0.000000 0.020000 ( 0.021469)
ancestry.children.size 0.010000 0.000000 0.010000 ( 0.015507)
closure_tree.children.size 0.020000 0.010000 0.030000 ( 0.021377)
ancestry.children.count 0.010000 0.000000 0.010000 ( 0.013779)
closure_tree.children.count 0.020000 0.000000 0.020000 ( 0.019650)
ancestry.siblings.to_a 0.010000 0.000000 0.010000 ( 0.015100)
closure_tree.siblings.to_a 0.020000 0.000000 0.020000 ( 0.017989)
ancestry.siblings.pluck(:id) 0.010000 0.000000 0.010000 ( 0.013073)
closure_tree.siblings.pluck(:id) 0.010000 0.000000 0.010000 ( 0.017272)
ancestry.siblings.size 0.010000 0.000000 0.010000 ( 0.015242)
closure_tree.siblings.size 0.010000 0.010000 0.020000 ( 0.017135)
ancestry.siblings.count 0.010000 0.000000 0.010000 ( 0.012851)
closure_tree.siblings.count 0.010000 0.000000 0.010000 ( 0.013299)
ancestry.descendants.to_a 0.050000 0.000000 0.050000 ( 3.727887)
closure_tree.descendants.to_a 0.050000 0.000000 0.050000 ( 0.073779)
ancestry.descendants.pluck(:id) 0.010000 0.000000 0.010000 ( 3.658073)
closure_tree.descendants.pluck(:id) 0.020000 0.000000 0.020000 ( 0.038813)
ancestry.descendants.size 0.010000 0.010000 0.020000 ( 3.726472)
closure_tree.descendants.size 0.030000 0.000000 0.030000 ( 0.042527)
ancestry.descendants.count 0.010000 0.000000 0.010000 ( 3.771423)
closure_tree.descendants.count 0.010000 0.000000 0.010000 ( 0.034023)
Trials for
employee: Hank Xander, Managing Director (id: 5728, depth: 6)
worker : Hank Xander, Managing Director (id: 5728, depth: 6)
employee: employee.ancestors.count (6)
worker : worker.ancestors.count (6)
employee: employee.children.count (11)
worker : worker.children.count (11)
employee: employee.siblings.count (11)
worker : worker.siblings.count (10)
employee: employee.descendants.count (123)
worker : worker.descendants.count (123)
Rehearsal -----------------------------------------------------------------------
ancestry.parent.to_s 0.010000 0.000000 0.010000 ( 0.022404)
closure_tree.parent.to_s 0.020000 0.000000 0.020000 ( 0.019174)
ancestry.root.to_s 0.010000 0.000000 0.010000 ( 0.022943)
closure_tree.root.to_s 0.030000 0.000000 0.030000 ( 0.033617)
ancestry.depth.to_s 0.000000 0.010000 0.010000 ( 0.007785)
closure_tree.depth.to_s 0.030000 0.000000 0.030000 ( 0.038180)
ancestry.ancestors.to_a 0.010000 0.000000 0.010000 ( 0.021669)
closure_tree.ancestors.to_a 0.030000 0.000000 0.030000 ( 0.034513)
ancestry.ancestors.pluck(:id) 0.010000 0.000000 0.010000 ( 0.022499)
closure_tree.ancestors.pluck(:id) 0.030000 0.000000 0.030000 ( 0.037220)
ancestry.ancestors.size 0.010000 0.000000 0.010000 ( 0.026711)
closure_tree.ancestors.size 0.030000 0.010000 0.040000 ( 0.035651)
ancestry.ancestors.count 0.010000 0.000000 0.010000 ( 0.022382)
closure_tree.ancestors.count 0.030000 0.000000 0.030000 ( 0.028815)
ancestry.children.to_a 0.010000 0.000000 0.010000 ( 0.025355)
closure_tree.children.to_a 0.020000 0.000000 0.020000 ( 0.033061)
ancestry.children.pluck(:id) 0.020000 0.000000 0.020000 ( 0.024481)
closure_tree.children.pluck(:id) 0.020000 0.000000 0.020000 ( 0.027711)
ancestry.children.size 0.010000 0.000000 0.010000 ( 0.023174)
closure_tree.children.size 0.020000 0.010000 0.030000 ( 0.027680)
ancestry.children.count 0.020000 0.000000 0.020000 ( 0.026623)
closure_tree.children.count 0.020000 0.000000 0.020000 ( 0.028484)
ancestry.siblings.to_a 0.010000 0.000000 0.010000 ( 0.028028)
closure_tree.siblings.to_a 0.020000 0.000000 0.020000 ( 0.025672)
ancestry.siblings.pluck(:id) 0.010000 0.000000 0.010000 ( 0.023299)
closure_tree.siblings.pluck(:id) 0.020000 0.000000 0.020000 ( 0.023291)
ancestry.siblings.size 0.010000 0.010000 0.020000 ( 0.025358)
closure_tree.siblings.size 0.010000 0.000000 0.010000 ( 0.018561)
ancestry.siblings.count 0.020000 0.000000 0.020000 ( 0.025781)
closure_tree.siblings.count 0.010000 0.000000 0.010000 ( 0.021048)
ancestry.descendants.to_a 0.030000 0.000000 0.030000 ( 3.877295)
closure_tree.descendants.to_a 0.030000 0.000000 0.030000 ( 0.049044)
ancestry.descendants.pluck(:id) 0.010000 0.000000 0.010000 ( 3.703552)
closure_tree.descendants.pluck(:id) 0.020000 0.000000 0.020000 ( 0.025543)
ancestry.descendants.size 0.010000 0.000000 0.010000 ( 3.642393)
closure_tree.descendants.size 0.020000 0.010000 0.030000 ( 0.025540)
ancestry.descendants.count 0.010000 0.000000 0.010000 ( 3.659393)
closure_tree.descendants.count 0.010000 0.000000 0.010000 ( 0.027269)
-------------------------------------------------------------- total: 0.700000sec
user system total real
ancestry.parent.to_s 0.010000 0.000000 0.010000 ( 0.012569)
closure_tree.parent.to_s 0.010000 0.000000 0.010000 ( 0.014508)
ancestry.root.to_s 0.010000 0.000000 0.010000 ( 0.013655)
closure_tree.root.to_s 0.020000 0.000000 0.020000 ( 0.022760)
ancestry.depth.to_s 0.000000 0.000000 0.000000 ( 0.006250)
closure_tree.depth.to_s 0.020000 0.010000 0.030000 ( 0.024280)
ancestry.ancestors.to_a 0.010000 0.000000 0.010000 ( 0.016344)
closure_tree.ancestors.to_a 0.020000 0.000000 0.020000 ( 0.020196)
ancestry.ancestors.pluck(:id) 0.020000 0.000000 0.020000 ( 0.019038)
closure_tree.ancestors.pluck(:id) 0.020000 0.000000 0.020000 ( 0.020238)
ancestry.ancestors.size 0.010000 0.000000 0.010000 ( 0.016489)
closure_tree.ancestors.size 0.020000 0.000000 0.020000 ( 0.021543)
ancestry.ancestors.count 0.010000 0.000000 0.010000 ( 0.013879)
closure_tree.ancestors.count 0.010000 0.000000 0.010000 ( 0.019883)
ancestry.children.to_a 0.010000 0.000000 0.010000 ( 0.015306)
closure_tree.children.to_a 0.020000 0.000000 0.020000 ( 0.020300)
ancestry.children.pluck(:id) 0.010000 0.000000 0.010000 ( 0.015589)
closure_tree.children.pluck(:id) 0.010000 0.000000 0.010000 ( 0.014935)
ancestry.children.size 0.010000 0.000000 0.010000 ( 0.017799)
closure_tree.children.size 0.010000 0.000000 0.010000 ( 0.015421)
ancestry.children.count 0.010000 0.010000 0.020000 ( 0.016403)
closure_tree.children.count 0.010000 0.000000 0.010000 ( 0.015980)
ancestry.siblings.to_a 0.010000 0.000000 0.010000 ( 0.016610)
closure_tree.siblings.to_a 0.010000 0.000000 0.010000 ( 0.014222)
ancestry.siblings.pluck(:id) 0.010000 0.000000 0.010000 ( 0.013633)
closure_tree.siblings.pluck(:id) 0.010000 0.000000 0.010000 ( 0.011740)
ancestry.siblings.size 0.010000 0.000000 0.010000 ( 0.016167)
closure_tree.siblings.size 0.010000 0.000000 0.010000 ( 0.014857)
ancestry.siblings.count 0.010000 0.000000 0.010000 ( 0.016696)
closure_tree.siblings.count 0.020000 0.000000 0.020000 ( 0.017829)
ancestry.descendants.to_a 0.030000 0.000000 0.030000 ( 4.037597)
closure_tree.descendants.to_a 0.040000 0.000000 0.040000 ( 0.054602)
ancestry.descendants.pluck(:id) 0.010000 0.000000 0.010000 ( 3.997031)
closure_tree.descendants.pluck(:id) 0.030000 0.010000 0.040000 ( 0.046645)
ancestry.descendants.size 0.020000 0.000000 0.020000 ( 4.007175)
closure_tree.descendants.size 0.020000 0.000000 0.020000 ( 0.038723)
ancestry.descendants.count 0.010000 0.000000 0.010000 ( 4.062140)
closure_tree.descendants.count 0.020000 0.000000 0.020000 ( 0.037086)
Trials for
employee: Ethelyn Aleen, Director (id: 35346, depth: 7)
worker : Ethelyn Aleen, Director (id: 35346, depth: 7)
employee: employee.ancestors.count (7)
worker : worker.ancestors.count (7)
employee: employee.children.count (2)
worker : worker.children.count (2)
employee: employee.siblings.count (7)
worker : worker.siblings.count (6)
employee: employee.descendants.count (12)
worker : worker.descendants.count (12)
Rehearsal -----------------------------------------------------------------------
ancestry.parent.to_s 0.020000 0.010000 0.030000 ( 0.020156)
closure_tree.parent.to_s 0.010000 0.000000 0.010000 ( 0.022821)
ancestry.root.to_s 0.020000 0.000000 0.020000 ( 0.023253)
closure_tree.root.to_s 0.020000 0.000000 0.020000 ( 0.035444)
ancestry.depth.to_s 0.010000 0.000000 0.010000 ( 0.008866)
closure_tree.depth.to_s 0.020000 0.000000 0.020000 ( 0.033166)
ancestry.ancestors.to_a 0.020000 0.000000 0.020000 ( 0.029222)
closure_tree.ancestors.to_a 0.020000 0.000000 0.020000 ( 0.035523)
ancestry.ancestors.pluck(:id) 0.020000 0.010000 0.030000 ( 0.024224)
closure_tree.ancestors.pluck(:id) 0.020000 0.000000 0.020000 ( 0.032854)
ancestry.ancestors.size 0.010000 0.000000 0.010000 ( 0.025419)
closure_tree.ancestors.size 0.030000 0.000000 0.030000 ( 0.036171)
ancestry.ancestors.count 0.010000 0.000000 0.010000 ( 0.023650)
closure_tree.ancestors.count 0.030000 0.000000 0.030000 ( 0.031709)
ancestry.children.to_a 0.010000 0.000000 0.010000 ( 0.025003)
closure_tree.children.to_a 0.020000 0.000000 0.020000 ( 0.029942)
ancestry.children.pluck(:id) 0.020000 0.010000 0.030000 ( 0.022263)
closure_tree.children.pluck(:id) 0.020000 0.000000 0.020000 ( 0.026330)
ancestry.children.size 0.010000 0.000000 0.010000 ( 0.027546)
closure_tree.children.size 0.020000 0.000000 0.020000 ( 0.028486)
ancestry.children.count 0.020000 0.000000 0.020000 ( 0.029980)
closure_tree.children.count 0.020000 0.000000 0.020000 ( 0.025644)
ancestry.siblings.to_a 0.010000 0.000000 0.010000 ( 0.024977)
closure_tree.siblings.to_a 0.020000 0.000000 0.020000 ( 0.027430)
ancestry.siblings.pluck(:id) 0.010000 0.010000 0.020000 ( 0.026019)
closure_tree.siblings.pluck(:id) 0.010000 0.000000 0.010000 ( 0.022388)
ancestry.siblings.size 0.020000 0.000000 0.020000 ( 0.022349)
closure_tree.siblings.size 0.010000 0.000000 0.010000 ( 0.021525)
ancestry.siblings.count 0.010000 0.000000 0.010000 ( 0.021401)
closure_tree.siblings.count 0.020000 0.000000 0.020000 ( 0.019159)
ancestry.descendants.to_a 0.010000 0.000000 0.010000 ( 4.136618)
closure_tree.descendants.to_a 0.020000 0.000000 0.020000 ( 0.027596)
ancestry.descendants.pluck(:id) 0.010000 0.010000 0.020000 ( 4.003191)
closure_tree.descendants.pluck(:id) 0.020000 0.000000 0.020000 ( 0.021735)
ancestry.descendants.size 0.010000 0.000000 0.010000 ( 4.003028)
closure_tree.descendants.size 0.020000 0.000000 0.020000 ( 0.024047)
ancestry.descendants.count 0.010000 0.000000 0.010000 ( 4.010293)
closure_tree.descendants.count 0.010000 0.000000 0.010000 ( 0.021995)
-------------------------------------------------------------- total: 0.670000sec
user system total real
ancestry.parent.to_s 0.010000 0.000000 0.010000 ( 0.011391)
closure_tree.parent.to_s 0.010000 0.000000 0.010000 ( 0.011539)
ancestry.root.to_s 0.010000 0.000000 0.010000 ( 0.013813)
closure_tree.root.to_s 0.010000 0.000000 0.010000 ( 0.021024)
ancestry.depth.to_s 0.010000 0.000000 0.010000 ( 0.005381)
closure_tree.depth.to_s 0.010000 0.010000 0.020000 ( 0.019795)
ancestry.ancestors.to_a 0.010000 0.000000 0.010000 ( 0.017925)
closure_tree.ancestors.to_a 0.020000 0.000000 0.020000 ( 0.026147)
ancestry.ancestors.pluck(:id) 0.010000 0.000000 0.010000 ( 0.016445)
closure_tree.ancestors.pluck(:id) 0.020000 0.000000 0.020000 ( 0.016664)
ancestry.ancestors.size 0.010000 0.000000 0.010000 ( 0.018093)
closure_tree.ancestors.size 0.020000 0.000000 0.020000 ( 0.023223)
ancestry.ancestors.count 0.010000 0.000000 0.010000 ( 0.016365)
closure_tree.ancestors.count 0.020000 0.000000 0.020000 ( 0.019702)
ancestry.children.to_a 0.010000 0.000000 0.010000 ( 0.015157)
closure_tree.children.to_a 0.020000 0.000000 0.020000 ( 0.019962)
ancestry.children.pluck(:id) 0.010000 0.000000 0.010000 ( 0.015079)
closure_tree.children.pluck(:id) 0.010000 0.000000 0.010000 ( 0.015222)
ancestry.children.size 0.010000 0.000000 0.010000 ( 0.015399)
closure_tree.children.size 0.010000 0.000000 0.010000 ( 0.016281)
ancestry.children.count 0.010000 0.000000 0.010000 ( 0.017014)
closure_tree.children.count 0.010000 0.000000 0.010000 ( 0.016978)
ancestry.siblings.to_a 0.010000 0.000000 0.010000 ( 0.015471)
closure_tree.siblings.to_a 0.010000 0.000000 0.010000 ( 0.019019)
ancestry.siblings.pluck(:id) 0.010000 0.000000 0.010000 ( 0.019624)
closure_tree.siblings.pluck(:id) 0.010000 0.000000 0.010000 ( 0.011918)
ancestry.siblings.size 0.010000 0.000000 0.010000 ( 0.015495)
closure_tree.siblings.size 0.010000 0.000000 0.010000 ( 0.012857)
ancestry.siblings.count 0.010000 0.000000 0.010000 ( 0.013447)
closure_tree.siblings.count 0.010000 0.000000 0.010000 ( 0.013240)
ancestry.descendants.to_a 0.010000 0.010000 0.020000 ( 3.993074)
closure_tree.descendants.to_a 0.020000 0.000000 0.020000 ( 0.028053)
ancestry.descendants.pluck(:id) 0.010000 0.000000 0.010000 ( 4.010858)
closure_tree.descendants.pluck(:id) 0.020000 0.000000 0.020000 ( 0.023937)
ancestry.descendants.size 0.010000 0.000000 0.010000 ( 3.974285)
closure_tree.descendants.size 0.020000 0.000000 0.020000 ( 0.023803)
ancestry.descendants.count 0.020000 0.000000 0.020000 ( 3.966651)
closure_tree.descendants.count 0.020000 0.000000 0.020000 ( 0.027636)
Trials for
employee: Chaim Stokes, Vice President (id: 213586, depth: 8)
worker : Chaim Stokes, Vice President (id: 213586, depth: 8)
employee: employee.ancestors.count (8)
worker : worker.ancestors.count (8)
employee: employee.children.count (1)
worker : worker.children.count (1)
employee: employee.siblings.count (3)
worker : worker.siblings.count (2)
employee: employee.descendants.count (1)
worker : worker.descendants.count (1)
Rehearsal -----------------------------------------------------------------------
ancestry.parent.to_s 0.020000 0.000000 0.020000 ( 0.022658)
closure_tree.parent.to_s 0.010000 0.000000 0.010000 ( 0.021653)
ancestry.root.to_s 0.020000 0.000000 0.020000 ( 0.022684)
closure_tree.root.to_s 0.020000 0.000000 0.020000 ( 0.032682)
ancestry.depth.to_s 0.010000 0.000000 0.010000 ( 0.013015)
closure_tree.depth.to_s 0.020000 0.000000 0.020000 ( 0.040145)
ancestry.ancestors.to_a 0.020000 0.000000 0.020000 ( 0.034657)
closure_tree.ancestors.to_a 0.020000 0.010000 0.030000 ( 0.041418)
ancestry.ancestors.pluck(:id) 0.010000 0.000000 0.010000 ( 0.030797)
closure_tree.ancestors.pluck(:id) 0.020000 0.000000 0.020000 ( 0.034974)
ancestry.ancestors.size 0.020000 0.000000 0.020000 ( 0.027826)
closure_tree.ancestors.size 0.030000 0.000000 0.030000 ( 0.039132)
ancestry.ancestors.count 0.010000 0.010000 0.020000 ( 0.031086)
closure_tree.ancestors.count 0.030000 0.000000 0.030000 ( 0.042200)
ancestry.children.to_a 0.010000 0.000000 0.010000 ( 0.020574)
closure_tree.children.to_a 0.020000 0.000000 0.020000 ( 0.038644)
ancestry.children.pluck(:id) 0.020000 0.000000 0.020000 ( 0.029876)
closure_tree.children.pluck(:id) 0.020000 0.000000 0.020000 ( 0.029047)
ancestry.children.size 0.020000 0.000000 0.020000 ( 0.030457)
closure_tree.children.size 0.020000 0.010000 0.030000 ( 0.032800)
ancestry.children.count 0.010000 0.000000 0.010000 ( 0.026921)
closure_tree.children.count 0.030000 0.000000 0.030000 ( 0.029228)
ancestry.siblings.to_a 0.010000 0.000000 0.010000 ( 0.025907)
closure_tree.siblings.to_a 0.020000 0.000000 0.020000 ( 0.026670)
ancestry.siblings.pluck(:id) 0.010000 0.000000 0.010000 ( 0.025244)
closure_tree.siblings.pluck(:id) 0.020000 0.000000 0.020000 ( 0.021456)
ancestry.siblings.size 0.010000 0.010000 0.020000 ( 0.025329)
closure_tree.siblings.size 0.020000 0.000000 0.020000 ( 0.030114)
ancestry.siblings.count 0.020000 0.000000 0.020000 ( 0.034398)
closure_tree.siblings.count 0.010000 0.000000 0.010000 ( 0.043040)
ancestry.descendants.to_a 0.020000 0.000000 0.020000 ( 4.683887)
closure_tree.descendants.to_a 0.020000 0.000000 0.020000 ( 0.027326)
ancestry.descendants.pluck(:id) 0.010000 0.000000 0.010000 ( 4.434349)
closure_tree.descendants.pluck(:id) 0.020000 0.000000 0.020000 ( 0.022508)
ancestry.descendants.size 0.010000 0.010000 0.020000 ( 4.434011)
closure_tree.descendants.size 0.020000 0.000000 0.020000 ( 0.026293)
ancestry.descendants.count 0.010000 0.000000 0.010000 ( 4.439843)
closure_tree.descendants.count 0.020000 0.000000 0.020000 ( 0.024345)
-------------------------------------------------------------- total: 0.710000sec
user system total real
ancestry.parent.to_s 0.010000 0.000000 0.010000 ( 0.014172)
closure_tree.parent.to_s 0.010000 0.000000 0.010000 ( 0.015078)
ancestry.root.to_s 0.010000 0.000000 0.010000 ( 0.019480)
closure_tree.root.to_s 0.020000 0.000000 0.020000 ( 0.023683)
ancestry.depth.to_s 0.000000 0.010000 0.010000 ( 0.006996)
closure_tree.depth.to_s 0.020000 0.000000 0.020000 ( 0.024552)
ancestry.ancestors.to_a 0.020000 0.000000 0.020000 ( 0.022314)
closure_tree.ancestors.to_a 0.020000 0.000000 0.020000 ( 0.025205)
ancestry.ancestors.pluck(:id) 0.020000 0.000000 0.020000 ( 0.021010)
closure_tree.ancestors.pluck(:id) 0.020000 0.000000 0.020000 ( 0.027832)
ancestry.ancestors.size 0.010000 0.000000 0.010000 ( 0.021509)
closure_tree.ancestors.size 0.030000 0.000000 0.030000 ( 0.027520)
ancestry.ancestors.count 0.020000 0.000000 0.020000 ( 0.022637)
closure_tree.ancestors.count 0.020000 0.000000 0.020000 ( 0.028058)
ancestry.children.to_a 0.010000 0.000000 0.010000 ( 0.020709)
closure_tree.children.to_a 0.020000 0.010000 0.030000 ( 0.021636)
ancestry.children.pluck(:id) 0.010000 0.000000 0.010000 ( 0.021016)
closure_tree.children.pluck(:id) 0.010000 0.000000 0.010000 ( 0.017871)
ancestry.children.size 0.010000 0.000000 0.010000 ( 0.019675)
closure_tree.children.size 0.010000 0.000000 0.010000 ( 0.018121)
ancestry.children.count 0.010000 0.010000 0.020000 ( 0.017704)
closure_tree.children.count 0.020000 0.000000 0.020000 ( 0.018379)
ancestry.siblings.to_a 0.010000 0.000000 0.010000 ( 0.017154)
closure_tree.siblings.to_a 0.020000 0.000000 0.020000 ( 0.017984)
ancestry.siblings.pluck(:id) 0.010000 0.000000 0.010000 ( 0.016715)
closure_tree.siblings.pluck(:id) 0.010000 0.000000 0.010000 ( 0.014186)
ancestry.siblings.size 0.010000 0.000000 0.010000 ( 0.015734)
closure_tree.siblings.size 0.010000 0.010000 0.020000 ( 0.018280)
ancestry.siblings.count 0.020000 0.000000 0.020000 ( 0.018714)
closure_tree.siblings.count 0.020000 0.000000 0.020000 ( 0.018568)
ancestry.descendants.to_a 0.010000 0.000000 0.010000 ( 4.512396)
closure_tree.descendants.to_a 0.020000 0.000000 0.020000 ( 0.029187)
ancestry.descendants.pluck(:id) 0.010000 0.000000 0.010000 ( 4.410367)
closure_tree.descendants.pluck(:id) 0.020000 0.000000 0.020000 ( 0.030436)
ancestry.descendants.size 0.010000 0.010000 0.020000 ( 4.540523)
closure_tree.descendants.size 0.030000 0.000000 0.030000 ( 0.029487)
ancestry.descendants.count 0.010000 0.000000 0.010000 ( 4.476639)
closure_tree.descendants.count 0.020000 0.000000 0.020000 ( 0.026020)
Trials for
employee: Katrina Howell, Manager (id: 61657, depth: 9)
worker : Katrina Howell, Manager (id: 61657, depth: 9)
employee: employee.ancestors.count (9)
worker : worker.ancestors.count (9)
employee: employee.children.count (2)
worker : worker.children.count (2)
employee: employee.siblings.count (2)
worker : worker.siblings.count (1)
employee: employee.descendants.count (15)
worker : worker.descendants.count (15)
Rehearsal -----------------------------------------------------------------------
ancestry.parent.to_s 0.010000 0.000000 0.010000 ( 0.021232)
closure_tree.parent.to_s 0.020000 0.000000 0.020000 ( 0.021728)
ancestry.root.to_s 0.010000 0.000000 0.010000 ( 0.023133)
closure_tree.root.to_s 0.030000 0.000000 0.030000 ( 0.033679)
ancestry.depth.to_s 0.010000 0.010000 0.020000 ( 0.009108)
closure_tree.depth.to_s 0.020000 0.000000 0.020000 ( 0.039053)
ancestry.ancestors.to_a 0.020000 0.000000 0.020000 ( 0.030012)
closure_tree.ancestors.to_a 0.030000 0.000000 0.030000 ( 0.037189)
ancestry.ancestors.pluck(:id) 0.010000 0.000000 0.010000 ( 0.024725)
closure_tree.ancestors.pluck(:id) 0.030000 0.000000 0.030000 ( 0.037636)
ancestry.ancestors.size 0.020000 0.000000 0.020000 ( 0.027198)
closure_tree.ancestors.size 0.030000 0.010000 0.040000 ( 0.043407)
ancestry.ancestors.count 0.020000 0.000000 0.020000 ( 0.029113)
closure_tree.ancestors.count 0.030000 0.000000 0.030000 ( 0.047069)
ancestry.children.to_a 0.020000 0.000000 0.020000 ( 0.029466)
closure_tree.children.to_a 0.020000 0.000000 0.020000 ( 0.036623)
ancestry.children.pluck(:id) 0.020000 0.000000 0.020000 ( 0.031249)
closure_tree.children.pluck(:id) 0.020000 0.000000 0.020000 ( 0.036020)
ancestry.children.size 0.020000 0.010000 0.030000 ( 0.030772)
closure_tree.children.size 0.020000 0.000000 0.020000 ( 0.034292)
ancestry.children.count 0.020000 0.000000 0.020000 ( 0.026770)
closure_tree.children.count 0.020000 0.000000 0.020000 ( 0.033794)
ancestry.siblings.to_a 0.020000 0.000000 0.020000 ( 0.027416)
closure_tree.siblings.to_a 0.020000 0.000000 0.020000 ( 0.026363)
ancestry.siblings.pluck(:id) 0.010000 0.010000 0.020000 ( 0.021375)
closure_tree.siblings.pluck(:id) 0.010000 0.000000 0.010000 ( 0.020548)
ancestry.siblings.size 0.020000 0.000000 0.020000 ( 0.025904)
closure_tree.siblings.size 0.020000 0.000000 0.020000 ( 0.022153)
ancestry.siblings.count 0.010000 0.000000 0.010000 ( 0.024692)
closure_tree.siblings.count 0.020000 0.000000 0.020000 ( 0.029635)
ancestry.descendants.to_a 0.020000 0.000000 0.020000 ( 4.844642)
closure_tree.descendants.to_a 0.020000 0.000000 0.020000 ( 0.026836)
ancestry.descendants.pluck(:id) 0.010000 0.010000 0.020000 ( 4.586526)
closure_tree.descendants.pluck(:id) 0.020000 0.000000 0.020000 ( 0.025846)
ancestry.descendants.size 0.010000 0.000000 0.010000 ( 4.600530)
closure_tree.descendants.size 0.020000 0.000000 0.020000 ( 0.024558)
ancestry.descendants.count 0.010000 0.000000 0.010000 ( 4.707356)
closure_tree.descendants.count 0.010000 0.000000 0.010000 ( 0.023176)
-------------------------------------------------------------- total: 0.750000sec
user system total real
ancestry.parent.to_s 0.010000 0.000000 0.010000 ( 0.014799)
closure_tree.parent.to_s 0.010000 0.000000 0.010000 ( 0.011866)
ancestry.root.to_s 0.010000 0.000000 0.010000 ( 0.011554)
closure_tree.root.to_s 0.020000 0.000000 0.020000 ( 0.023549)
ancestry.depth.to_s 0.000000 0.000000 0.000000 ( 0.008441)
closure_tree.depth.to_s 0.020000 0.000000 0.020000 ( 0.021212)
ancestry.ancestors.to_a 0.010000 0.000000 0.010000 ( 0.018917)
closure_tree.ancestors.to_a 0.020000 0.000000 0.020000 ( 0.022890)
ancestry.ancestors.pluck(:id) 0.010000 0.000000 0.010000 ( 0.017541)
closure_tree.ancestors.pluck(:id) 0.020000 0.000000 0.020000 ( 0.020369)
ancestry.ancestors.size 0.010000 0.000000 0.010000 ( 0.017074)
closure_tree.ancestors.size 0.020000 0.010000 0.030000 ( 0.025191)
ancestry.ancestors.count 0.010000 0.000000 0.010000 ( 0.016645)
closure_tree.ancestors.count 0.020000 0.000000 0.020000 ( 0.021257)
ancestry.children.to_a 0.010000 0.000000 0.010000 ( 0.016926)
closure_tree.children.to_a 0.020000 0.000000 0.020000 ( 0.016424)
ancestry.children.pluck(:id) 0.010000 0.000000 0.010000 ( 0.013130)
closure_tree.children.pluck(:id) 0.020000 0.000000 0.020000 ( 0.019851)
ancestry.children.size 0.010000 0.000000 0.010000 ( 0.014666)
closure_tree.children.size 0.020000 0.010000 0.030000 ( 0.018860)
ancestry.children.count 0.010000 0.000000 0.010000 ( 0.014826)
closure_tree.children.count 0.020000 0.000000 0.020000 ( 0.019397)
ancestry.siblings.to_a 0.010000 0.000000 0.010000 ( 0.014183)
closure_tree.siblings.to_a 0.020000 0.000000 0.020000 ( 0.016980)
ancestry.siblings.pluck(:id) 0.010000 0.000000 0.010000 ( 0.013360)
closure_tree.siblings.pluck(:id) 0.010000 0.000000 0.010000 ( 0.014994)
ancestry.siblings.size 0.010000 0.000000 0.010000 ( 0.013176)
closure_tree.siblings.size 0.020000 0.000000 0.020000 ( 0.017809)
ancestry.siblings.count 0.010000 0.010000 0.020000 ( 0.013065)
closure_tree.siblings.count 0.010000 0.000000 0.010000 ( 0.013837)
ancestry.descendants.to_a 0.010000 0.000000 0.010000 ( 4.493295)
closure_tree.descendants.to_a 0.010000 0.000000 0.010000 ( 0.028780)
ancestry.descendants.pluck(:id) 0.010000 0.000000 0.010000 ( 4.493552)
closure_tree.descendants.pluck(:id) 0.020000 0.000000 0.020000 ( 0.024477)
ancestry.descendants.size 0.010000 0.000000 0.010000 ( 4.606875)
closure_tree.descendants.size 0.020000 0.000000 0.020000 ( 0.028281)
ancestry.descendants.count 0.020000 0.000000 0.020000 ( 4.489117)
closure_tree.descendants.count 0.020000 0.000000 0.020000 ( 0.027835)
Trials for
employee: Aylin Brenden, Lead Supervisor (id: 23340, depth: 10)
worker : Aylin Brenden, Lead Supervisor (id: 23340, depth: 10)
employee: employee.ancestors.count (10)
worker : worker.ancestors.count (10)
employee: employee.children.count (2)
worker : worker.children.count (2)
employee: employee.siblings.count (8)
worker : worker.siblings.count (7)
employee: employee.descendants.count (171)
worker : worker.descendants.count (171)
Rehearsal -----------------------------------------------------------------------
ancestry.parent.to_s 0.010000 0.000000 0.010000 ( 0.019647)
closure_tree.parent.to_s 0.020000 0.000000 0.020000 ( 0.025086)
ancestry.root.to_s 0.010000 0.000000 0.010000 ( 0.024755)
closure_tree.root.to_s 0.030000 0.000000 0.030000 ( 0.033242)
ancestry.depth.to_s 0.010000 0.000000 0.010000 ( 0.009115)
closure_tree.depth.to_s 0.020000 0.000000 0.020000 ( 0.038940)
ancestry.ancestors.to_a 0.020000 0.010000 0.030000 ( 0.029738)
closure_tree.ancestors.to_a 0.020000 0.000000 0.020000 ( 0.037824)
ancestry.ancestors.pluck(:id) 0.020000 0.000000 0.020000 ( 0.027732)
closure_tree.ancestors.pluck(:id) 0.020000 0.000000 0.020000 ( 0.033619)
ancestry.ancestors.size 0.020000 0.000000 0.020000 ( 0.026339)
closure_tree.ancestors.size 0.020000 0.000000 0.020000 ( 0.035507)
ancestry.ancestors.count 0.020000 0.000000 0.020000 ( 0.028565)
closure_tree.ancestors.count 0.020000 0.010000 0.030000 ( 0.034578)
ancestry.children.to_a 0.020000 0.000000 0.020000 ( 0.029208)
closure_tree.children.to_a 0.020000 0.000000 0.020000 ( 0.029302)
ancestry.children.pluck(:id) 0.010000 0.000000 0.010000 ( 0.020606)
closure_tree.children.pluck(:id) 0.020000 0.000000 0.020000 ( 0.025547)
ancestry.children.size 0.020000 0.000000 0.020000 ( 0.026641)
closure_tree.children.size 0.020000 0.000000 0.020000 ( 0.036718)
ancestry.children.count 0.010000 0.010000 0.020000 ( 0.026384)
closure_tree.children.count 0.030000 0.000000 0.030000 ( 0.034493)
ancestry.siblings.to_a 0.010000 0.000000 0.010000 ( 0.027136)
closure_tree.siblings.to_a 0.020000 0.000000 0.020000 ( 0.026249)
ancestry.siblings.pluck(:id) 0.010000 0.000000 0.010000 ( 0.021273)
closure_tree.siblings.pluck(:id) 0.020000 0.000000 0.020000 ( 0.025464)
ancestry.siblings.size 0.010000 0.000000 0.010000 ( 0.026109)
closure_tree.siblings.size 0.020000 0.010000 0.030000 ( 0.024861)
ancestry.siblings.count 0.020000 0.000000 0.020000 ( 0.028213)
closure_tree.siblings.count 0.010000 0.000000 0.010000 ( 0.027709)
ancestry.descendants.to_a 0.040000 0.000000 0.040000 ( 4.524227)
closure_tree.descendants.to_a 0.030000 0.000000 0.030000 ( 0.056734)
ancestry.descendants.pluck(:id) 0.020000 0.000000 0.020000 ( 4.794249)
closure_tree.descendants.pluck(:id) 0.010000 0.010000 0.020000 ( 0.030398)
ancestry.descendants.size 0.020000 0.000000 0.020000 ( 4.464432)
closure_tree.descendants.size 0.020000 0.000000 0.020000 ( 0.033708)
ancestry.descendants.count 0.010000 0.000000 0.010000 ( 4.500115)
closure_tree.descendants.count 0.020000 0.000000 0.020000 ( 0.030995)
-------------------------------------------------------------- total: 0.750000sec
user system total real
ancestry.parent.to_s 0.020000 0.000000 0.020000 ( 0.015184)
closure_tree.parent.to_s 0.010000 0.000000 0.010000 ( 0.014224)
ancestry.root.to_s 0.010000 0.000000 0.010000 ( 0.013526)
closure_tree.root.to_s 0.020000 0.000000 0.020000 ( 0.020910)
ancestry.depth.to_s 0.000000 0.010000 0.010000 ( 0.008469)
closure_tree.depth.to_s 0.020000 0.000000 0.020000 ( 0.022905)
ancestry.ancestors.to_a 0.010000 0.000000 0.010000 ( 0.020905)
closure_tree.ancestors.to_a 0.020000 0.000000 0.020000 ( 0.021764)
ancestry.ancestors.pluck(:id) 0.010000 0.000000 0.010000 ( 0.015666)
closure_tree.ancestors.pluck(:id) 0.010000 0.000000 0.010000 ( 0.020621)
ancestry.ancestors.size 0.010000 0.000000 0.010000 ( 0.017253)
closure_tree.ancestors.size 0.020000 0.010000 0.030000 ( 0.021845)
ancestry.ancestors.count 0.010000 0.000000 0.010000 ( 0.017894)
closure_tree.ancestors.count 0.020000 0.000000 0.020000 ( 0.019425)
ancestry.children.to_a 0.010000 0.000000 0.010000 ( 0.016023)
closure_tree.children.to_a 0.010000 0.000000 0.010000 ( 0.016793)
ancestry.children.pluck(:id) 0.010000 0.000000 0.010000 ( 0.015057)
closure_tree.children.pluck(:id) 0.010000 0.000000 0.010000 ( 0.018318)
ancestry.children.size 0.010000 0.000000 0.010000 ( 0.015887)
closure_tree.children.size 0.010000 0.000000 0.010000 ( 0.019356)
ancestry.children.count 0.010000 0.000000 0.010000 ( 0.016125)
closure_tree.children.count 0.020000 0.000000 0.020000 ( 0.019865)
ancestry.siblings.to_a 0.010000 0.000000 0.010000 ( 0.015717)
closure_tree.siblings.to_a 0.010000 0.000000 0.010000 ( 0.014523)
ancestry.siblings.pluck(:id) 0.010000 0.000000 0.010000 ( 0.012706)
closure_tree.siblings.pluck(:id) 0.010000 0.000000 0.010000 ( 0.012612)
ancestry.siblings.size 0.000000 0.000000 0.000000 ( 0.013155)
closure_tree.siblings.size 0.010000 0.000000 0.010000 ( 0.014354)
ancestry.siblings.count 0.010000 0.000000 0.010000 ( 0.013324)
closure_tree.siblings.count 0.010000 0.000000 0.010000 ( 0.012844)
ancestry.descendants.to_a 0.030000 0.000000 0.030000 ( 4.514100)
closure_tree.descendants.to_a 0.040000 0.010000 0.050000 ( 0.056447)
ancestry.descendants.pluck(:id) 0.010000 0.000000 0.010000 ( 4.501770)
closure_tree.descendants.pluck(:id) 0.010000 0.000000 0.010000 ( 0.034042)
ancestry.descendants.size 0.010000 0.000000 0.010000 ( 4.524726)
closure_tree.descendants.size 0.020000 0.000000 0.020000 ( 0.030095)
ancestry.descendants.count 0.010000 0.000000 0.010000 ( 4.416154)