Skip to content

sydneyitguy/sort.js

Repository files navigation

Benchmark Results on: Intel i5 1.7GHz / 4GB 1333MHz DDR3

Chrome/20.0.1132.57

  • Array size = 100 * 1000 times


       NativeSort: (   0.0450)
        QuickSort: (   0.0130)
        MergeSort: (   0.0840)
    InsertionSort: (   0.0750)
       BubbleSort: (   0.0420)
    

    ----------------- total: 0.2590

  • Array size = 1000 * 1000 times


       NativeSort: (   0.6670)
        QuickSort: (   0.1700)
        MergeSort: (   1.0390)
    InsertionSort: (   1.7260)
       BubbleSort: (   4.5180)
    

    ----------------- total: 8.1200

Firefox/12.0

  • Array size = 100 * 1000 times


       NativeSort: (   0.1060)
        QuickSort: (   0.0150)
        MergeSort: (   0.0900)
    InsertionSort: (   0.1890)
       BubbleSort: (   0.0420)
    

    ----------------- total: 0.4420

  • Array size = 1000 * 1000 times


       NativeSort: (   1.6760)
        QuickSort: (   0.1650)
        MergeSort: (   1.7780)
    InsertionSort: (   9.3580)
       BubbleSort: (   3.4070)
    

    ---------------- total: 16.3840

Safari/5.1.7(7534.57.2)

  • Array size = 100 * 1000 times


       NativeSort: (   0.0130)
        QuickSort: (   0.0170)
        MergeSort: (   0.1050)
    InsertionSort: (   0.4870)
       BubbleSort: (   0.0520)
    

    ----------------- total: 0.6740

  • Array size = 1000 * 1000 times


        NativeSort: (   0.1630)
         QuickSort: (   0.2270)
         MergeSort: (   1.6610)
    InsertionSort: (   43.2410)
        BubbleSort: (   5.1170)
    

    ----------------- total: 50.4090

About

Javascript sort algorithms / Test / Benchmark

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published