A test of speed for sorting algorithms bubble sort and merge sort in Node Js and Go
You need Node Js and Golang installed on your computer to run this tests.
-
Run
node createArray.js XXXXwhere XXXX is the length of the array with random numbers you want to use on the sorting algorithms, this will create a json file on the./inputsfolder with the created array. -
Run
node sort.jsto see Node Js performance. This will run Bubble Sort and Merge Sort on different arrays loaded from the previously created json file, display the times of each algorithm on the terminal and save the sorted array in the./outputsfolder. -
Run
go run sort.goto see Golang's performance. This will run Bubble Sort and Merge Sort on different arrays loaded from the previously created json file, display the times of each algorithm on the terminal and save the sorted array in the./outputsfolder.