Giter Site home page Giter Site logo

artbench's Introduction

Archived header

ART Bench

ART Bench is a simple demonstration of the performance difference between the new Android Runtime (ART) and the current Dalvik Virtual Machine. To fully illustrate these differences, I've employed the New Relic Android agent to collect performance metrics and send them to back to New Relic.

Getting Started

First, you'll need a New Relic account. If you don't have one, you can always sign up for free. Next, just click on "Mobile Apps" and then "Add a new app". Follow the instructions for Gradle and add your application token to the onCreate method in MyActivity.

Now you'll need a device configured with ART. You'll find the option in your Developer Options menu: enabling ART

You can use a physical device or an emulator such as Genymotion.

Benchmarking

There are two ways to observe the benchmark results. You can just tail the device logs (run adb logcat or open the pane in Android Studio) or wait a minute for the results to post to New Relic. Of course, with New Relic you'll be able to see individual benchmark traces. Feel free to replace the spectral norm code with your own benchmark. You can find more excellent examples here.

License

BSD

Contriubtions

You are welcome to send pull requests to us - however, by doing so you agree that you are granting New Relic a non-exclusive, non-revokable, no-cost license to use the code, algorithms, patents, and ideas in that code in our products if we so choose. You also agree the code is provided as-is and you provide no warranties as to its fitness or correctness for any purpose.

artbench's People

Contributors

melissaklein24 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.