Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: tencentyun/tls-sig-api-v2-golang
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 66c185f
Choose a base ref
...
head repository: tencentyun/tls-sig-api-v2-golang
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 4b09e9e
Choose a head ref
  • 5 commits
  • 4 files changed
  • 1 contributor

Commits on Nov 19, 2024

  1. test: add benchmark

    okhowang committed Nov 19, 2024
    Configuration menu
    Copy the full SHA
    fd0dd8f View commit details
    Browse the repository at this point in the history
  2. perf: reuse zlib.Writer

    before:
    BenchmarkGenSig
    BenchmarkGenSig-16                          7788            150884 ns/op          817750 B/op         62 allocs/op
    BenchmarkGenUserSigWithBuf
    BenchmarkGenUserSigWithBuf-16               7298            140476 ns/op          818145 B/op         68 allocs/op
    
    after:
    BenchmarkGenSig
    BenchmarkGenSig-16               	   39601	     30510 ns/op	    3896 B/op	      42 allocs/op
    BenchmarkGenUserSigWithBuf
    BenchmarkGenUserSigWithBuf-16    	   38188	     31464 ns/op	    4064 B/op	      48 allocs/op
    okhowang committed Nov 19, 2024
    Configuration menu
    Copy the full SHA
    fcff232 View commit details
    Browse the repository at this point in the history
  3. feat: add option DefaultCompressionLevel, default NoCompression

    before:
    BenchmarkGenSig
    BenchmarkGenSig-16               	   39601	     30510 ns/op	    3896 B/op	      42 allocs/op
    BenchmarkGenUserSigWithBuf
    BenchmarkGenUserSigWithBuf-16    	   38188	     31464 ns/op	    4064 B/op	      48 allocs/op
    
    after:
    BenchmarkGenSig
    BenchmarkGenSig-16               	  191563	      6149 ns/op	    4400 B/op	      41 allocs/op
    BenchmarkGenUserSigWithBuf
    BenchmarkGenUserSigWithBuf-16    	  180298	      6598 ns/op	    4357 B/op	      45 allocs/op
    okhowang committed Nov 19, 2024
    Configuration menu
    Copy the full SHA
    d28f7e1 View commit details
    Browse the repository at this point in the history
  4. perf: optimize memory allocation

    before:
    BenchmarkGenSig
    BenchmarkGenSig-16               	  191563	      6149 ns/op	    4400 B/op	      41 allocs/op
    BenchmarkGenUserSigWithBuf
    BenchmarkGenUserSigWithBuf-16    	  180298	      6598 ns/op	    4357 B/op	      45 allocs/op
    
    after:
    BenchmarkGenSig
    BenchmarkGenSig-16               	  394201	      3111 ns/op	    2131 B/op	      19 allocs/op
    BenchmarkGenUserSigWithBuf
    BenchmarkGenUserSigWithBuf-16    	  372675	      3170 ns/op	    1866 B/op	      22 allocs/op
    okhowang committed Nov 19, 2024
    Configuration menu
    Copy the full SHA
    a13dfd1 View commit details
    Browse the repository at this point in the history
  5. chore: add go.sum

    okhowang committed Nov 19, 2024
    Configuration menu
    Copy the full SHA
    4b09e9e View commit details
    Browse the repository at this point in the history
Loading