Giter Site home page Giter Site logo

avro-benchmarking's Introduction

Avro Benchmarking

Performance testing of the simple type and complex type of avro object by serlization and de-serilization

Schema format using String type: { "namespace": "example.avro", "type": "record", "name": "Message", "fields": [ {"name": "header", "type": "string"}, {"name": "payload", "type": "string"} ] }

Schema format using map type:

{ "namespace": "example.avro", "type": "record", "name": "Message_map", "fields": [ { "name": "map", "type": { "type": "map", "values":"string" } } ] }

Result:

Benchamrk Summary - String type [825ms] { #tests: 1000 #repetitions: 1

64 bytes payload:
     mean_time[μs]: 151.84833899999873
  size_of_msg[bytes]: 4.0

}

Benchamrk Summary - Map type [777ms] { #tests: 1000 #repetitions: 1

64 bytes payload:
     mean_time[μs]: 141.17873400000133
  size_of_msg[bytes]: 6.0

}

Conclusion:

Simple type (String) takes less bytes and less processing time to serialiaze and deserialize it as compared to complex type(Map) in avro.

avro-benchmarking's People

Contributors

skashan-ali avatar

Watchers

James Cloos avatar  avatar

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.