Giter VIP home page Giter VIP logo

plan's Introduction

dn-m

Application targets for the dn-m project.

plan's People

Contributors

jsbean avatar mossheim avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

nhthn

plan's Issues

Make sure all Travis builds work

repo status
AbstractMusicalModel Build Status
ArithmeticTools Build Status
Articulations Build Status
AudioTools Build Status
Collections Build Status
Duration Build Status
Dynamics Build Status
GeometryTools Build Status
GraphicsTools Build Status
Helper Build Status
Language Build Status
Metronome Build Status
MetronomeController Build Status
MusicXML Build Status
OSC Build Status
ParserTools Build Status
PathTools Build Status
Pitch Build Status
PitchSpellingTools Build Status
PlotModel Build Status
PlotView Build Status
ProgressBar Build Status
Rhythm Build Status
RhythmSpellingTools Build Status
RhythmView Build Status
ScoreModelLayer Build Status
ScoreViewLayer Build Status
StaffModel Build Status
StaffView Build Status
Timeline Build Status
dn-m Build Status
dn-m.github.io Build Status

Testing Tools

It is now worthwhile to interrogate the performance of some of the underlying data structures and algorithms for this project.

@brianlheim cooked up a really nice XCTestCase subclass for testing the linear complexity of a given operation over a given data structure, prepared in a given way.

I think this could be abstracted even further, making it painless to add performance tests in parallel to logic tests.

final class Measuring<T> {

    enum Result {
        case success
        case failure(expected: Complexity, result: String)
    }

    enum Complexity {
        case constant
        case logarithmic
        case linear
        case quasiLinear
        case quadratic
        case cubic
        case exponential
        case factorial
    }

    var resource: T

    init(_ resource: T, setUp: ((inout T) -> Void)? = nil) {
        self.resource = resource
        setUp?(&self.resource)
    }

    @discardableResult func assertComplexity <U> (
        _ complexity: Complexity,
        setUp: ((inout T) -> Void)? = nil,
        for operation: (T) -> U
    ) -> Measuring
    {
        // assert ...
        return self
    }

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.