Android Open Source - MergeSortBenchmark Merge Sort Benchmark Data






From Project

Back to project page MergeSortBenchmark.

License

The source code is released under:

MIT License

If you think the Android project MergeSortBenchmark listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package io.jamescscott.mergesortbenchmark;
/*from   w w w. j a  v  a  2 s . c  o m*/
/**
 * Created by jamescscott on 11/23/14.
 */
public class MergeSortBenchmarkData {
    private int arraySize;
    private long duration;
    public MergeSortBenchmarkData(int size, long duration) {
        this.arraySize = size;
        this.duration = duration;
    }

    // Helper function. In case we want to change the delimiter.
    public static String getDataDelimiter() {
        return ",";
    }

    // Helper function. In case we want to print to a file.
    public static String getDataHeader() {
        return "array_size" + getDataDelimiter() + "duration";
    }

    @Override
    public String toString() {
        return arraySize + getDataDelimiter() + duration + "\n";
    }
}




Java Source Code List

go.Go.java
go.Seq.java
go.mergesort.Mergesort.java
io.jamescscott.mergesortbenchmark.ApplicationTest.java
io.jamescscott.mergesortbenchmark.CMergeSort.java
io.jamescscott.mergesortbenchmark.GoMergeSort.java
io.jamescscott.mergesortbenchmark.IMergeSortable.java
io.jamescscott.mergesortbenchmark.JavaMergeSort.java
io.jamescscott.mergesortbenchmark.MainActivity.java
io.jamescscott.mergesortbenchmark.MergeSortBenchmarkController.java
io.jamescscott.mergesortbenchmark.MergeSortBenchmarkData.java