Giter Club home page Giter Club logo

Comments (4)

watermelo avatar watermelo commented on September 26, 2024

Let me fix this issue @AlexStocks

from dubbo-go-hessian2.

AlexStocks avatar AlexStocks commented on September 26, 2024

@watermelo thx for your kindness. pls do more benchmark tests to check the improvement is valid or not.

from dubbo-go-hessian2.

watermelo avatar watermelo commented on September 26, 2024

benchmark as follows:

go version go1.12.6

master branch

dubbo-go-hessian2 (master) $ go test -bench=. -benchmem -run=none
goos: darwin
goarch: amd64
pkg: github.com/apache/dubbo-go-hessian2
BenchmarkTestRegisterPOJO-4                50000             33158 ns/op           10101 B/op        153 allocs/op
BenchmarkTestEncodeTuple-4                200000             11827 ns/op            2861 B/op         93 allocs/op
BenchmarkTestEncodeDecodeTuple-4           50000             31168 ns/op            8881 B/op        311 allocs/op
BenchmarkEncodeBasePointer-4             1000000              1019 ns/op             608 B/op          7 allocs/op
BenchmarkEncodeDecodeBasePointer-4        500000              4846 ns/op            5320 B/op         28 allocs/op
PASS
ok      github.com/apache/dubbo-go-hessian2     11.994s

insteaded branch

dubbo-go-hessian2 (96_sync_map_instead_opt) $ go test -bench=. -benchmem -run=none
goos: darwin
goarch: amd64
pkg: github.com/apache/dubbo-go-hessian2
BenchmarkTestRegisterPOJO-4                50000             47289 ns/op           13143 B/op        267 allocs/op
BenchmarkTestEncodeTuple-4                200000             11227 ns/op            3021 B/op         99 allocs/op
BenchmarkTestEncodeDecodeTuple-4           50000             38296 ns/op            9041 B/op        317 allocs/op
BenchmarkEncodeBasePointer-4             1000000              1516 ns/op             608 B/op          7 allocs/op
BenchmarkEncodeDecodeBasePointer-4        200000              9052 ns/op            5320 B/op         28 allocs/op
PASS
ok      github.com/apache/dubbo-go-hessian2     13.319s

from dubbo-go-hessian2.

AlexStocks avatar AlexStocks commented on September 26, 2024

thx. If so, I will close #155

from dubbo-go-hessian2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.