Giter Site home page Giter Site logo

activepatternperformance's Introduction

This code is an experiment in the performance characteristics of Discriminated Unions and Active Patterns. It is for this blog post. Any critiques or ideas are welcome ๐Ÿ˜Š.

Method Mean Error StdDev BranchMispredictions/Op CacheMisses/Op Gen 0 Allocated
DuEncodingRandomAccess 83.09 ms 1.122 ms 0.995 ms 7,414,534 400,225 - 175 B
StructDuEncodingRandomAccess 83.56 ms 0.766 ms 0.640 ms 7,415,626 409,418 - 175 B
IntEncodingWithActivePatternRandomAccess 134.88 ms 2.650 ms 4.845 ms 8,126,171 1,070,592 28500.0000 240,000,358 B
IntEncodingWithPartialActivePatternRandomAccess 86.43 ms 0.841 ms 0.787 ms 7,995,620 406,096 - 191 B
DuEncodingLinearAccess 14.86 ms 0.090 ms 0.084 ms 5,073 7,701 - 22 B
StructDuEncodingLinearAccess 17.35 ms 0.151 ms 0.142 ms 119,799 13,508 - 36 B
IntEncodingWithActivePatternLinearAccess 74.67 ms 1.018 ms 0.903 ms 167,078 677,829 28571.4286 240,000,191 B
IntEncodingWithPartialActivePatternLinearAccess 22.83 ms 0.372 ms 0.348 ms 8,151 33,225 - 45 B

activepatternperformance's People

Contributors

matthewcrews avatar

Stargazers

Hammad Javed avatar Bongjun Jang avatar Daniel Blendea 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.