After doubts about the methodology used in the other empirical approach, I conducted my own insert test (all sets are initialized before the synchronization insert, for random testing of the insert, the list of tuples is shuffled before the synchronization starts) with the following results:
for an ordered set with members 2k, 20k and 200k:
- head one: 196.29s | 1146.43s | 9897.29s
- tail first: 170.14s | 993.43 s | 9722.14s
- rand insert: 146.00s | 1014.57 s | 9968.57s
All with sufficient variability (standard developers at 7.8 | 54.5 | 324.5 respectively), so the difference is not significant enough for the conclusions. It doesn't seem to matter ... :(
Daren source share