Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##########################################################################
- benchmarking with 1 elements
- #insert
- indexmap took 4.238µs:
- hashmap took 481ns:
- std_vec took 170ns:
- linked-hash-map took 2.314µs:
- fx hashmap took 111ns:
- btreemap took 170ns:
- #iterate
- indexmap took 31ns:
- vec took 30ns:
- hashmap took 40ns:
- linked-hashmap took 30ns:
- fx hashmap took 40ns:
- btreemap took 180ns:
- indexmap (values only) took 30ns:
- linked-hashmap (with view) took 40ns:
- linked-hashmap (values only) took 30ns:
- fx hashmap (values only) took 40ns:
- btreemap (values only) took 60ns:
- #access
- indexmap took 30ns:
- vec took 30ns:
- vec (if access by index would be allowed) took 20ns:
- hashmap took 141ns:
- linked-hashmap took 60ns:
- fx hashmap took 50ns:
- btreemap took 51ns:
- #clone
- indexmap took 340ns - 1
- vec took 100ns - 1
- hashmap took 191ns - 1
- linked-hashmap took 161ns - 1
- fx hashmap took 100ns - 1
- btreemap took 210ns - 1
- #clone_from
- indexmap took 90ns - 1
- vec took 50ns - 1
- hashmap took 121ns - 1
- linked-hashmap took 311ns - 1
- fx hashmap took 50ns - 1
- btreemap took 221ns - 1
- #push to back
- indexmap took 40ns:
- vec took 60ns:
- hashmap unsupported
- linked-hashmap took 50ns:
- fx hashmap unsupported
- btreemap is sorted by design
- #remove
- indexmap took 71ns:
- vec took 60ns:
- hashmap took 91ns:
- linked-hashmap took 60ns:
- fx hashmap took 60ns:
- btreemap took 211ns:
- ##########################################################################
- benchmarking with 8 elements
- #insert
- indexmap took 822ns:
- hashmap took 541ns:
- std_vec took 190ns:
- linked-hash-map took 621ns:
- fx hashmap took 2.565µs:
- btreemap took 140ns:
- #iterate
- indexmap took 41ns:
- vec took 50ns:
- hashmap took 51ns:
- linked-hashmap took 50ns:
- fx hashmap took 50ns:
- btreemap took 100ns:
- indexmap (values only) took 50ns:
- linked-hashmap (with view) took 50ns:
- linked-hashmap (values only) took 50ns:
- fx hashmap (values only) took 40ns:
- btreemap (values only) took 80ns:
- #access
- indexmap took 190ns:
- vec took 130ns:
- vec (if access by index would be allowed) took 40ns:
- hashmap took 150ns:
- linked-hashmap took 60ns:
- fx hashmap took 60ns:
- btreemap took 151ns:
- #clone
- indexmap took 221ns - 8
- vec took 40ns - 8
- hashmap took 70ns - 8
- linked-hashmap took 631ns - 8
- fx hashmap took 80ns - 8
- btreemap took 70ns - 8
- #clone_from
- indexmap took 91ns - 8
- vec took 30ns - 8
- hashmap took 40ns - 8
- linked-hashmap took 531ns - 8
- fx hashmap took 40ns - 8
- btreemap took 80ns - 8
- #push to back
- indexmap took 411ns:
- vec took 81ns:
- hashmap unsupported
- linked-hashmap took 70ns:
- fx hashmap unsupported
- btreemap is sorted by design
- #remove
- indexmap took 420ns:
- vec took 120ns:
- hashmap took 171ns:
- linked-hashmap took 150ns:
- fx hashmap took 150ns:
- btreemap took 221ns:
- ##########################################################################
- benchmarking with 64 elements
- #insert
- indexmap took 4.498µs:
- hashmap took 5.07µs:
- std_vec took 581ns:
- linked-hash-map took 4.809µs:
- fx hashmap took 1.473µs:
- btreemap took 3.858µs:
- #iterate
- indexmap took 70ns:
- vec took 90ns:
- hashmap took 160ns:
- linked-hashmap took 130ns:
- fx hashmap took 200ns:
- btreemap took 290ns:
- indexmap (values only) took 90ns:
- linked-hashmap (with view) took 110ns:
- linked-hashmap (values only) took 110ns:
- fx hashmap (values only) took 150ns:
- btreemap (values only) took 240ns:
- #access
- indexmap took 962ns:
- vec took 1.092µs:
- vec (if access by index would be allowed) took 60ns:
- hashmap took 931ns:
- linked-hashmap took 320ns:
- fx hashmap took 180ns:
- btreemap took 1.703µs:
- #clone
- indexmap took 370ns - 64
- vec took 1.823µs - 64
- hashmap took 110ns - 64
- linked-hashmap took 23.254µs - 64
- fx hashmap took 1.783µs - 64
- btreemap took 451ns - 64
- #clone_from
- indexmap took 220ns - 64
- vec took 40ns - 64
- hashmap took 110ns - 64
- linked-hashmap took 4.528µs - 64
- fx hashmap took 91ns - 64
- btreemap took 501ns - 64
- #push to back
- indexmap took 9.378µs:
- vec took 721ns:
- hashmap unsupported
- linked-hashmap took 461ns:
- fx hashmap unsupported
- btreemap is sorted by design
- #remove
- order check: 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
- indexmap took 11.281µs:
- order check: 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
- vec took 4.799µs:
- can't preserve order in hashmap.
- hashmap took 2.665µs:
- order check: 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
- linked-hashmap took 5.4µs:
- can't preserve order in fx hashmap.
- fx hashmap took 2.074µs:
- btreemap are sorted by design.
- btreemap took 3.717µs:
- ##########################################################################
- benchmarking with 512 elements
- #insert
- indexmap took 36.079µs:
- hashmap took 36.46µs:
- std_vec took 1.193µs:
- linked-hash-map took 24.106µs:
- fx hashmap took 27.403µs:
- btreemap took 18.625µs:
- #iterate
- indexmap took 171ns:
- vec took 281ns:
- hashmap took 902ns:
- linked-hashmap took 752ns:
- fx hashmap took 892ns:
- btreemap took 1.593µs:
- indexmap (values only) took 181ns:
- linked-hashmap (with view) took 692ns:
- linked-hashmap (values only) took 681ns:
- fx hashmap (values only) took 751ns:
- btreemap (values only) took 1.542µs:
- #access
- indexmap took 7.164µs:
- vec took 50.797µs:
- vec (if access by index would be allowed) took 220ns:
- hashmap took 7.153µs:
- linked-hashmap took 1.593µs:
- fx hashmap took 1.162µs:
- btreemap took 15.4µs:
- #clone
- indexmap took 14.037µs - 512
- vec took 3.196µs - 512
- hashmap took 7.855µs - 512
- linked-hashmap took 45.216µs - 512
- fx hashmap took 7.985µs - 512
- btreemap took 14.468µs - 512
- #clone_from
- indexmap took 5.661µs - 512
- vec took 120ns - 512
- hashmap took 2.024µs - 512
- linked-hashmap took 43.432µs - 512
- fx hashmap took 4.689µs - 512
- btreemap took 10.5µs - 512
- #push to back
- indexmap took 479.571µs:
- vec took 18.635µs:
- hashmap unsupported
- linked-hashmap took 2.856µs:
- fx hashmap unsupported
- btreemap is sorted by design
- #remove
- order check: 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
- indexmap took 254.374µs:
- order check: 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
- vec took 15.77µs:
- can't preserve order in hashmap.
- hashmap took 10.009µs:
- order check: 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
- linked-hashmap took 8.677µs:
- can't preserve order in fx hashmap.
- fx hashmap took 4.409µs:
- btreemap are sorted by design.
- btreemap took 13.005µs:
- ##########################################################################
- benchmarking with 100000 elements
- #insert
- indexmap took 4.762003ms:
- hashmap took 4.820214ms:
- std_vec took 58.261µs:
- linked-hash-map took 6.731668ms:
- fx hashmap took 2.175145ms:
- btreemap took 6.651786ms:
- #iterate
- indexmap took 23.906µs:
- vec took 47.741µs:
- hashmap took 128.985µs:
- linked-hashmap took 296.774µs:
- fx hashmap took 112.985µs:
- btreemap took 318.695µs:
- indexmap (values only) took 23.485µs:
- linked-hashmap (with view) took 126.491µs:
- linked-hashmap (values only) took 133.945µs:
- fx hashmap (values only) took 103.187µs:
- btreemap (values only) took 294.68µs:
- #access
- indexmap took 2.956652ms:
- vec took 1.703082883s:
- vec (if access by index would be allowed) took 35.988µs:
- hashmap took 3.407198ms:
- linked-hashmap took 990.032µs:
- fx hashmap took 887.878µs:
- btreemap took 4.110064ms:
- #clone
- indexmap took 1.067089ms - 100000
- vec took 418.977µs - 100000
- hashmap took 296.674µs - 100000
- linked-hashmap took 7.931189ms - 100000
- fx hashmap took 456.758µs - 100000
- btreemap took 3.799985ms - 100000
- #clone_from
- indexmap took 1.090494ms - 100000
- vec took 393.278µs - 100000
- hashmap took 280.503µs - 100000
- linked-hashmap took 8.003497ms - 100000
- fx hashmap took 298.638µs - 100000
- btreemap took 3.784075ms - 100000
- #push to back
- indexmap took 21.301247511s:
- vec took 1.295917368s:
- hashmap unsupported
- linked-hashmap took 1.342833ms:
- fx hashmap unsupported
- btreemap is sorted by design
- #remove
- order check: 99951 99952 99953 99954 99955 99956 99957 99958 99959 99960 99961 99962 99963 99964 99965 99966 99967 99968 99969 99970 99971 99972 99973 99974 99975 99976 99977 99978 99979 99980 99981 99982 99983 99984 99985 99986 99987 99988 99989 99990 99991 99992 99993 99994 99995 99996 99997 99998 99999
- indexmap took 15.203963006s:
- order check: 99951 99952 99953 99954 99955 99956 99957 99958 99959 99960 99961 99962 99963 99964 99965 99966 99967 99968 99969 99970 99971 99972 99973 99974 99975 99976 99977 99978 99979 99980 99981 99982 99983 99984 99985 99986 99987 99988 99989 99990 99991 99992 99993 99994 99995 99996 99997 99998 99999
- vec took 559.207688ms:
- can't preserve order in hashmap.
- hashmap took 3.799584ms:
- order check: 99951 99952 99953 99954 99955 99956 99957 99958 99959 99960 99961 99962 99963 99964 99965 99966 99967 99968 99969 99970 99971 99972 99973 99974 99975 99976 99977 99978 99979 99980 99981 99982 99983 99984 99985 99986 99987 99988 99989 99990 99991 99992 99993 99994 99995 99996 99997 99998 99999
- linked-hashmap took 1.78347ms:
- can't preserve order in fx hashmap.
- fx hashmap took 1.384743ms:
- btreemap are sorted by design.
- btreemap took 2.525842ms:
Advertisement
Add Comment
Please, Sign In to add comment