Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
5d0ceba
Tool for generating player micro-benchmarks.
mithro Jun 3, 2014
5e6995a
Generated micro-benchmarks for player object.
mithro Jun 3, 2014
637d742
Fixing extra brace.
mithro Jun 3, 2014
d0795ce
Fixing description and comment for getting player into paused state.
mithro Jun 3, 2014
7d1e32e
Regenerating output tests.
mithro Jun 3, 2014
3f8f11b
Upping the number of runs.
mithro Jun 3, 2014
c5fb4a8
Using setup method on PerfTestRunner (and small cleanup for that).
mithro Jun 3, 2014
6f1d62c
Regenerating the output files based on changes to template in last co…
mithro Jun 3, 2014
03ccd11
Converting to Shane's method of state transitions.
mithro Jun 4, 2014
956e8b9
Regenerating output files.
mithro Jun 4, 2014
22b40aa
Ignore empty directories.
mithro Jun 4, 2014
890d019
Removing the second play in not-started-to-play.js
mithro Jun 5, 2014
894ac2c
Starting play via restoring the effect.
mithro Jun 5, 2014
1231ce8
Removing the playing-backwards-to-XXXX tests.
mithro Jun 5, 2014
f2de3c0
Fixing the paused-to-finish implimentation.
mithro Jun 5, 2014
17af1f5
Removing complex-effect, many-keyframe and null-effect effects.
mithro Jun 5, 2014
4954737
Removing the not-started tests.
mithro Jun 5, 2014
e1b6df4
Removing reverse as it doesn't fit the template.
mithro Jun 5, 2014
255b955
Adding the tests selected by Shane.
mithro Jun 5, 2014
e27f850
Merge remote-tracking branch 'pwfork_origin/master' into perfWeek
mithro Jun 5, 2014
3b287ee
Moving the selected tests into the top level.
mithro Jun 13, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<body>
<script src="../../../../../../resources/runner.js"></script>
<div id="target"></div>
<script>
var animation = null;
var player = null;

PerfTestRunner.measureRunsPerSecond({
description: "Testing calling cancel() on cancelled player with null.",
setup: function() {
// Using "null" instead of a real Animation object.
animation = null;

// Create the player object with the animation effect
player = document.timeline.play(animation);
},
run: function() {
for (var i = 0; i < 1000; i++) {
player.cancel();
}
},
});
</script>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<body>
<script src="../../../../../../resources/runner.js"></script>
<div id="target"></div>
<script>
var animation = null;
var player = null;

PerfTestRunner.measureRunsPerSecond({
description: "Testing calling finish() on finished player with null.",
setup: function() {
// Using "null" instead of a real Animation object.
animation = null;

// Create the player object with the animation effect
player = document.timeline.play(animation);
},
run: function() {
for (var i = 0; i < 1000; i++) {
player.finish();
}
},
});
</script>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!DOCTYPE html>
<html>
<body>
<script src="../../../../../../resources/runner.js"></script>
<div id="target"></div>
<script>
var animation = null;
var player = null;

PerfTestRunner.measureRunsPerSecond({
description: "Testing calling finish() on finished player with simple effect.",
setup: function() {
// Animation with two keyframes and one property.
var keyframes = [];
keyframes.push({'width': '100px'});
keyframes.push({'width': '400px'});

animation = new Animation(target, keyframes, 1000);

// Create the player object with the animation effect
player = document.timeline.play(animation);
},
run: function() {
for (var i = 0; i < 1000; i++) {
player.finish();
}
},
});
</script>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!DOCTYPE html>
<html>
<body>
<script src="../../../../../../resources/runner.js"></script>
<div id="target"></div>
<script>
var animation = null;
var player = null;

PerfTestRunner.measureRunsPerSecond({
description: "Testing calling play() on finished player with null.",
setup: function() {
// Using "null" instead of a real Animation object.
animation = null;

// Create the player object with the animation effect
player = document.timeline.play(animation);
},
run: function() {
for (var i = 0; i < 1000; i++) {
// Put the player into the finish state
player.finish();

// Transition to play
player.play();
}
},
});
</script>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!DOCTYPE html>
<html>
<body>
<script src="../../../../../../resources/runner.js"></script>
<div id="target"></div>
<script>
var animation = null;
var player = null;

PerfTestRunner.measureRunsPerSecond({
description: "Testing calling play() on finished player with simple effect.",
setup: function() {
// Animation with two keyframes and one property.
var keyframes = [];
keyframes.push({'width': '100px'});
keyframes.push({'width': '400px'});

animation = new Animation(target, keyframes, 1000);

// Create the player object with the animation effect
player = document.timeline.play(animation);
},
run: function() {
for (var i = 0; i < 1000; i++) {
// Put the player into the finish state
player.finish();

// Transition to play
player.play();
}
},
});
</script>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!DOCTYPE html>
<html>
<body>
<script src="../../../../../../resources/runner.js"></script>
<div id="target"></div>
<script>
var animation = null;
var player = null;

PerfTestRunner.measureRunsPerSecond({
description: "Testing calling reverse() on finished player with null.",
setup: function() {
// Using "null" instead of a real Animation object.
animation = null;

// Create the player object with the animation effect
player = document.timeline.play(animation);

// Put the player into the finish state
player.finish();
},
run: function() {
for (var i = 0; i < 1000; i++) {
// Transition to reverse
player.reverse();
}
},
});
</script>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!DOCTYPE html>
<html>
<body>
<script src="../../../../../../resources/runner.js"></script>
<div id="target"></div>
<script>
var animation = null;
var player = null;

PerfTestRunner.measureRunsPerSecond({
description: "Testing calling reverse() on finished player with simple effect.",
setup: function() {
// Animation with two keyframes and one property.
var keyframes = [];
keyframes.push({'width': '100px'});
keyframes.push({'width': '400px'});

animation = new Animation(target, keyframes, 1000);

// Create the player object with the animation effect
player = document.timeline.play(animation);
// Put the player into the finish state
player.finish();
},
run: function() {
for (var i = 0; i < 1000; i++) {
// Transition to reverse
player.reverse();
}
},
});
</script>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!DOCTYPE html>
<html>
<body>
<script src="../../../../../../resources/runner.js"></script>
<div id="target"></div>
<script>
var animation = null;
var player = null;

PerfTestRunner.measureRunsPerSecond({
description: "Testing calling paused() on paused player with simple effect.",
setup: function() {
// Animation with two keyframes and one property.
var keyframes = [];
keyframes.push({'width': '100px'});
keyframes.push({'width': '400px'});

animation = new Animation(target, keyframes, 1000);

// Create the player object with the animation effect
player = document.timeline.play(animation);
},
run: function() {
for (var i = 0; i < 1000; i++) {
player.pause();
}
},
});
</script>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!DOCTYPE html>
<html>
<body>
<script src="../../../../../../resources/runner.js"></script>
<div id="target"></div>
<script>
var animation = null;
var player = null;

PerfTestRunner.measureRunsPerSecond({
description: "Testing calling play() on paused player with null.",
setup: function() {
// Using "null" instead of a real Animation object.
animation = null;

// Create the player object with the animation effect
player = document.timeline.play(animation);
},
run: function() {
for (var i = 0; i < 1000; i++) {
// Put the player into the paused state
player.pause();

// Transition to play
player.play();
}
},
});
</script>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!DOCTYPE html>
<html>
<body>
<script src="../../../../../../resources/runner.js"></script>
<div id="target"></div>
<script>
var animation = null;
var player = null;

PerfTestRunner.measureRunsPerSecond({
description: "Testing calling play() on paused player with simple effect.",
setup: function() {
// Animation with two keyframes and one property.
var keyframes = [];
keyframes.push({'width': '100px'});
keyframes.push({'width': '400px'});

animation = new Animation(target, keyframes, 1000);

// Create the player object with the animation effect
player = document.timeline.play(animation);
},
run: function() {
for (var i = 0; i < 1000; i++) {
// Put the player into the paused state
player.pause();

// Transition to play
player.play();
}
},
});
</script>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!DOCTYPE html>
<html>
<body>
<script src="../../../../../../resources/runner.js"></script>
<div id="target"></div>
<script>
var animation = null;
var player = null;

PerfTestRunner.measureRunsPerSecond({
description: "Testing calling reverse() on paused player with null.",
setup: function() {
// Using "null" instead of a real Animation object.
animation = null;

// Create the player object with the animation effect
player = document.timeline.play(animation);

// Put the player into the paused state
player.pause();
},
run: function() {
for (var i = 0; i < 1000; i++) {
// Transition to reverse
player.reverse();
}
},
});
</script>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!DOCTYPE html>
<html>
<body>
<script src="../../../../../../resources/runner.js"></script>
<div id="target"></div>
<script>
var animation = null;
var player = null;

PerfTestRunner.measureRunsPerSecond({
description: "Testing calling reverse() on paused player with simple effect.",
setup: function() {
// Animation with two keyframes and one property.
var keyframes = [];
keyframes.push({'width': '100px'});
keyframes.push({'width': '400px'});

animation = new Animation(target, keyframes, 1000);

// Create the player object with the animation effect
player = document.timeline.play(animation);

// Put the player into the paused state
player.pause();
},
run: function() {
for (var i = 0; i < 1000; i++) {
// Transition to reverse
player.reverse();
}
},
});
</script>
</body>
</html>
Loading