Skip to content

Instantly share code, notes, and snippets.

@gsora
Created October 22, 2019 14:25
Show Gist options
  • Select an option

  • Save gsora/b3f8170cd093ef825be19b5b7a9b4785 to your computer and use it in GitHub Desktop.

Select an option

Save gsora/b3f8170cd093ef825be19b5b7a9b4785 to your computer and use it in GitHub Desktop.

Revisions

  1. gsora revised this gist Oct 22, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Loopback VS Unix Sockets HTTP GET
    Original file line number Diff line number Diff line change
    @@ -16,7 +16,7 @@ Unix Sockets HTTP GET
    goos: linux
    goarch: amd64
    pkg: client-sockets
    Benchmark_do-2 19878 59551 ns/op 3912 B/op 42 allocs/op
    Benchmark_doSockets-2 19878 59551 ns/op 3912 B/op 42 allocs/op
    PASS
    ok client-sockets 2.155s
    Success: Benchmarks passed.
  2. gsora created this gist Oct 22, 2019.
    24 changes: 24 additions & 0 deletions Loopback VS Unix Sockets HTTP GET
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,24 @@
    Loopback HTTP GET

    ```
    goos: linux
    goarch: amd64
    pkg: client-localhost
    Benchmark_doLoopback-2 6195 209226 ns/op 2617 B/op 35 allocs/op
    PASS
    ok client-localhost 1.327s
    Success: Benchmarks passed.
    ```

    Unix Sockets HTTP GET

    ```
    goos: linux
    goarch: amd64
    pkg: client-sockets
    Benchmark_do-2 19878 59551 ns/op 3912 B/op 42 allocs/op
    PASS
    ok client-sockets 2.155s
    Success: Benchmarks passed.
    ```