Class ListVsMapBenchmark


  • public class ListVsMapBenchmark
    extends java.lang.Object
    • Field Detail

      • size

        public static int size
      • length

        public static int length
      • lookups

        public static int lookups
      • mostly

        public static java.lang.String mostly
    • Constructor Detail

      • ListVsMapBenchmark

        public ListVsMapBenchmark()
    • Method Detail

      • setup

        public void setup()
      • testArrayList

        public long testArrayList()
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testLinkedList

        public long testLinkedList()
                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testLinkedHashMap

        public long testLinkedHashMap()
                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testHashMapAndLinkedList

        public long testHashMapAndLinkedList()
                                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testHashMapAndArrayList

        public long testHashMapAndArrayList()
                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • main

        public static void main​(java.lang.String[] args)
                         throws org.openjdk.jmh.runner.RunnerException
        Throws:
        org.openjdk.jmh.runner.RunnerException