github.com/LdDl/ch@v1.7.8/benchmarks/RUN.md (about)

     1  # This is just tech MD for comparing different development branches
     2  
     3  ## M-N search
     4  ```shell
     5  git checkout redudant_pointers && \
     6  go test -benchmem -run=^$ -bench ^BenchmarkShortestPathManyToMany$ github.com/LdDl/ch -v -count=1 > benchmarks/new_mn_ptr.txt && \
     7  git checkout dcb59c8c6cbac82090b9fcab8ec256d678765a74 && \
     8  go test -benchmem -run=^$ -bench ^BenchmarkShortestPathManyToMany$ github.com/LdDl/ch -v -count=1 > benchmarks/old_mn_ptr.txt && \
     9  benchcmp benchmarks/old_mn_ptr.txt benchmarks/new_mn_ptr.txt && \
    10  benchstat benchmarks/old_mn_ptr.txt benchmarks/new_mn_ptr.txt && \
    11  git checkout redudant_pointers
    12  ```
    13  
    14  ## 1-N search
    15  ```shell
    16  git checkout redudant_pointers && \
    17  go test -benchmem -run=^$ -bench ^BenchmarkShortestPathOneToMany$ github.com/LdDl/ch -v -count=1 > benchmarks/new_1n_ptr.txt && \
    18  git checkout dcb59c8c6cbac82090b9fcab8ec256d678765a74 && \
    19  go test -benchmem -run=^$ -bench ^BenchmarkShortestPathOneToMany$ github.com/LdDl/ch -v -count=1 > benchmarks/old_1n_ptr.txt && \
    20  benchcmp benchmarks/old_1n_ptr.txt benchmarks/new_1n_ptr.txt && \
    21  benchstat benchmarks/old_1n_ptr.txt benchmarks/new_1n_ptr.txt && \
    22  git checkout redudant_pointers
    23  ```
    24  
    25  ## 1-1 search
    26  ```shell
    27  git checkout redudant_pointers && \
    28  go test -benchmem -run=^$ -bench ^BenchmarkShortestPath$ github.com/LdDl/ch -v -count=1 > benchmarks/new_11_ptr.txt && \
    29  git checkout dcb59c8c6cbac82090b9fcab8ec256d678765a74 && \
    30  go test -benchmem -run=^$ -bench ^BenchmarkShortestPath$ github.com/LdDl/ch -v -count=1 > benchmarks/old_11_ptr.txt && \
    31  benchcmp benchmarks/old_11_ptr.txt benchmarks/new_11_ptr.txt && \
    32  benchstat benchmarks/old_11_ptr.txt benchmarks/new_11_ptr.txt && \
    33  git checkout redudant_pointers
    34  ```
    35  
    36  ## 1-1 search (single b.Run(...))
    37  ```shell
    38  git checkout redudant_pointers && \
    39  go test -benchmem -run=^$ -bench ^BenchmarkStaticCaseShortestPath$ github.com/LdDl/ch -v -count=1 > benchmarks/new_11static_ptr.txt && \
    40  git checkout dcb59c8c6cbac82090b9fcab8ec256d678765a74 && \
    41  go test -benchmem -run=^$ -bench ^BenchmarkStaticCaseShortestPath$ github.com/LdDl/ch -v -count=1 > benchmarks/old_11static_ptr.txt && \
    42  benchcmp benchmarks/old_11static_ptr.txt benchmarks/new_11static_ptr.txt && \
    43  benchstat benchmarks/old_11static_ptr.txt benchmarks/new_11static_ptr.txt && \
    44  git checkout redudant_pointers
    45  ```
    46  
    47  ## CH Prepare
    48  ```shell
    49  git checkout redudant_pointers && \
    50  go test -benchmem -run=^$ -bench ^BenchmarkPrepareContracts$ github.com/LdDl/ch -v -count=1 > benchmarks/new_ch_prepare_ptr.txt && \
    51  git checkout dcb59c8c6cbac82090b9fcab8ec256d678765a74 && \
    52  go test -benchmem -run=^$ -bench ^BenchmarkPrepareContracts$ github.com/LdDl/ch -v -count=1 > benchmarks/old_ch_prepare_ptr.txt && \
    53  benchcmp benchmarks/old_ch_prepare_ptr.txt benchmarks/new_ch_prepare_ptr.txt && \
    54  benchstat benchmarks/old_ch_prepare_ptr.txt benchmarks/new_ch_prepare_ptr.txt && \
    55  git checkout redudant_pointers
    56  ```
    57  
    58