Code Monkey home page Code Monkey logo

image-streaming-iterator-bench's Introduction

Benchmarks for image crate pixel iterator

This benchmark computes the sum of all rgb components in the image. It measures the time and memory usage. It does this using ImageBuffer, a streaming iterator optimized for RGB8 and a streaming iterator with generic pixel type.

Run with:

> cargo run --release path/to/image.png

For this nasa image of 21600x10800 rgb pixels the results on my machine are:

Buffer:
pixel sum: [3341899515, 1612940354, 675870307]
time used: 7.231880666s, memory allocated (in kb): 683855

Incremental static:
pixel sum: [3341899515, 1612940354, 675870307]
time used: 8.606524099s, memory allocated (in kb): 490

Incremental dynamic:
pixel sum: [3341899515, 1612940354, 675870307]
time used: 9.765532836s, memory allocated (in kb): 490

Unsurprisingly the ImageBuffer version is slightly faster, but uses a lot more memory, while the

image-streaming-iterator-bench's People

Contributors

birktj avatar

Watchers

 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.