Permalink
Browse files

Added some simple perf tests.

  • Loading branch information...
David Humphrey
David Humphrey committed Mar 13, 2011
1 parent 0b2ab35 commit 5081cfe4523648262992609eef6fe3038bf1a47c
Showing with 17 additions and 6 deletions.
  1. +3 −0 test/perf/random-ellipse.pde
  2. +8 −0 test/perf/random-fill.pde
  3. +0 −6 test/perf/random-line.pde
  4. +3 −0 test/perf/random-point.pde
  5. +3 −0 test/perf/tests.js
@@ -0,0 +1,3 @@
+void draw() {
+ ellipse(random(width), random(height), 55, 55);
+}
@@ -0,0 +1,8 @@
+void draw() {
+ fill(random(255), random(255), random(255));
+
+ int topX = random(width - 10);
+ int topY = random(height - 10);
+
+ rect(topX, topY, topX + 10, topY + 10);
+}
@@ -4,15 +4,9 @@ void setup() { // this is run once.
// set the background color
background(255);
- // canvas size (Integers only, please.)
- size(300, 300);
-
// smooth edges
smooth();
- // limit the number of frames per second
- frameRate(30);
-
// set the width of the line.
strokeWeight(12);
}
@@ -0,0 +1,3 @@
+void draw() {
+ point(random(width), random(height));
+}
View
@@ -2,5 +2,8 @@
var tests = [
{ path: "empty-baseline.pde", tags: ["Calibration"] },
{ path: "background.pde", tags: ["2D"] },
+ { path: "random-ellipse.pde", tags: ["2D"] },
+ { path: "random-point.pde", tags: ["2D"] },
+ { path: "random-fill.pde", tags: ["2D"] },
{ path: "random-line.pde", tags: ["2D"] }
];

0 comments on commit 5081cfe

Please sign in to comment.