GithubHelp home page GithubHelp logo

jonike / revl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from christophercrouzet/revl

0.0 2.0 0.0 70 KB

Helps to benchmark code for Autodesk Maya.

License: MIT License

Python 98.67% Makefile 1.33%

revl's Introduction

Revl

PyPI latest version

Documentation status

License

Revl is a Python library that helps to benchmark code for Autodesk Maya.

Upon writing a piece of code for Maya, it might be interesting to know how it performs under different conditions, such as within scenes that are large or small, that define a deep DAG hiearchy or a flat one, that use many node types or only a few, and so on.

Following sets of user-provided commands, Revl can pseudo-randomly generate Maya scenes with different properties against which the behaviour of a piece of code can be observed.

The random nature of the process can also help revealing potential bugs by exposing edge cases that were not thought of, thus making it also a good tool for unit testing. See Wikipedia's Fuzzing page.

Note that Revl does not provide any sort of profiling tool to measure performances. The built-in timeit_ module as well as other open-source packages can be used for this purpose.

Features

  • generates scenes by running commands a given total number of times.
  • fine control over the probability distribution for each command.
  • scene generations are reproducible using a fixed seed.
  • extensible with custom commands.
  • allows for fuzz testing.
  • fast (using Maya's API, not the command layer).

Usage

In this example, Revl invokes a total of 100 evaluations inequally shared between the two distinct commands provided, leading to create approximatively 80% of transforms, and 20% of primitives (plus their associated transforms). Also, the primitive type is picked randomly, and each primitive's transform is randomly parented under another transform from the scene, possibly creating a scene with a deep DAG hierarchy.

See the Tutorial section from the documentation for more detailed examples and explanations on how to use Revl.

Documentation

Read the documentation online at revl.readthedocs.io or check its source in the doc directory.

Out There

Projects using Revl include:

Author

Christopher Crouzet <christophercrouzet.com>

revl's People

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.