Skip to content

Commit 06acb93

Browse files
committed
Migrate MotionMark 1.2 from its own directory to the common MotionMark directory.
1 parent 27f9a75 commit 06acb93

File tree

131 files changed

+145
-13820
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

131 files changed

+145
-13820
lines changed

MotionMark/about.html

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
Copyright (C) 2015-2018 Apple Inc. All rights reserved.
2+
Copyright (C) 2015-2020 Apple Inc. All rights reserved.
33
44
Redistribution and use in source and binary forms, with or without
55
modification, are permitted provided that the following conditions
@@ -59,7 +59,7 @@ <h1>About MotionMark <span class="version"></span></h1>
5959
<ul>
6060
<li><strong>Multiply</strong>: CSS border radius, transforms, opacity</li>
6161
<li><strong>Arcs and Fills</strong>: Canvas path fills and arcs</li>
62-
<li><strong>Leaves</strong>: CSS-transformed elements</li>
62+
<li><strong>Leaves</strong>: CSS-transformed elements, opacity</li>
6363
<li><strong>Paths</strong>: Canvas line, quadratic, and Bezier paths</li>
6464
<li><strong>Lines</strong>: Canvas line segments</li>
6565
<li><strong>Focus</strong>: CSS blur filter, opacity</li>
@@ -70,6 +70,15 @@ <h1>About MotionMark <span class="version"></span></h1>
7070

7171
<p>To achieve consistent results on mobile devices, put the device in landscape orientation. On laptops and desktops, use the default display resolution and make the browser window fullscreen. Make sure that screen automatic display sleep is turned off or set to longer than 8 minutes.</p>
7272

73+
<h3>Version log</h3>
74+
75+
<ul id="log">
76+
<li><strong>1.2</strong>: Fix <a href="https://bugs.webkit.org/show_bug.cgi?id=220847">bug</a>, <a href="https://bugs.webkit.org/show_bug.cgi?id=221075">bug</a>, and <a href="https://bugs.webkit.org/show_bug.cgi?id=219984">bug</a> to reduce test variance and sensitivity to individual long frames.</li>
77+
<li><strong>1.1.1</strong>: Fix <a href="https://bugs.webkit.org/show_bug.cgi?id=210640">bug</a> in the calculation of timestamps used for animation during warm up phase of tests.</li>
78+
<li><a href="https://webkit.org/blog/8434/motionmark-1-1/"><strong>1.1</strong></a>: Update Multiply test to increase max capacity and expand methods for hiding elements. Update Leaves test to use range of sizes and opacity.</li>
79+
<li><a href="https://webkit.org/blog/6943/motionmark-a-new-graphics-benchmark/"><strong>1.0</strong></a>: Initial release.</li>
80+
</ul>
81+
7382
<center><button onclick="location.href='./'">Return to homepage</button></center>
7483
</div>
7584
</section>
@@ -80,4 +89,4 @@ <h1>About MotionMark <span class="version"></span></h1>
8089
document.querySelector(".version").textContent = Strings.version;
8190
</script>
8291
</body>
83-
</html>
92+
</html>

MotionMark/developer.html

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
Copyright (C) 2015-2018 Apple Inc. All rights reserved.
2+
Copyright (C) 2015-2020 Apple Inc. All rights reserved.
33
44
Redistribution and use in source and binary forms, with or without
55
modification, are permitted provided that the following conditions
@@ -64,6 +64,15 @@ <h2>Suites:</h2>
6464
<h2>Options:</h2>
6565
<form name="benchmark-options">
6666
<ul>
67+
<li>
68+
<label>Warmup length: <input type="number" id="warmup-length" value="2000"> milliseconds</label>
69+
</li>
70+
<li>
71+
<label>Warmup frame count: <input type="number" id="warmup-frame-count" value="30"> frames</label>
72+
</li>
73+
<li>
74+
<label>First frame minimum length: <input type="number" id="first-frame-minimum-length" value="0"> ms</label>
75+
</li>
6776
<li>
6877
<label>Test length: <input type="number" id="test-interval" value="30"> seconds each</label>
6978
</li>
@@ -92,13 +101,6 @@ <h3>Adjusting the test complexity:</h3>
92101
<li>
93102
<label>Target frame rate: <input type="number" id="frame-rate" value="50"> FPS</label>
94103
</li>
95-
<li>
96-
<h3>Kalman filter estimated error:</h3>
97-
<ul>
98-
<li><label>Process error (Q): <input type="number" id="kalman-process-error" value="1"></label></li>
99-
<li><label>Measurement error (R): <input type="number" id="kalman-measurement-error" value="4"></label></li>
100-
</ul>
101-
</li>
102104
<li>
103105
<h3>Time measurement method:</h3>
104106
<ul>

MotionMark/resources/debug-runner/motionmark.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2015-2018 Apple Inc. All rights reserved.
2+
* Copyright (C) 2015-2020 Apple Inc. All rights reserved.
33
*
44
* Redistribution and use in source and binary forms, with or without
55
* modification, are permitted provided that the following conditions
@@ -241,7 +241,7 @@ window.optionsManager =
241241

242242
document.body.classList.add("display-" + optionsManager.valueForOption("display"));
243243
},
244-
244+
245245
updateTiles: function()
246246
{
247247
document.body.classList.remove("tiles-big");
@@ -615,7 +615,7 @@ Utilities.extendObject(window.benchmarkController, {
615615
startBenchmark: function()
616616
{
617617
benchmarkController.determineCanvasSize();
618-
benchmarkController.options = optionsManager.updateLocalStorageFromUI();
618+
benchmarkController.options = Utilities.mergeObjects(this.benchmarkDefaultParameters, optionsManager.updateLocalStorageFromUI());
619619
benchmarkController.suites = suitesManager.updateLocalStorageFromUI();
620620
this._startBenchmark(benchmarkController.suites, benchmarkController.options, "running-test");
621621
},

MotionMark/resources/debug-runner/tests.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2015-2018 Apple Inc. All rights reserved.
2+
* Copyright (C) 2015-2023 Apple Inc. All rights reserved.
33
*
44
* Redistribution and use in source and binary forms, with or without
55
* modification, are permitted provided that the following conditions
@@ -183,7 +183,7 @@ Suites.push(new Suite("HTML suite",
183183
name: "CSS bouncing filter circles"
184184
},
185185
{
186-
url: "bouncing-particles/bouncing-css-images.html?particleWidth=80&particleHeight=80&imageSrc=../resources/yin-yang.svg",
186+
url: "bouncing-particles/bouncing-css-images.html?particleWidth=80&particleHeight=80",
187187
name: "CSS bouncing SVG images"
188188
},
189189
{
@@ -199,7 +199,7 @@ Suites.push(new Suite("HTML suite",
199199
name: "DOM particles, SVG masks"
200200
},
201201
{
202-
url: "dom/compositing-transforms.html?particleWidth=50&particleHeight=50&filters=yes&imageSrc=../resources/yin-yang.svg",
202+
url: "dom/compositing-transforms.html?particleWidth=50&particleHeight=50&filters=yes",
203203
name: "Composited Transforms"
204204
}
205205
]
@@ -216,11 +216,11 @@ Suites.push(new Suite("Canvas suite",
216216
name: "canvas bouncing gradient circles"
217217
},
218218
{
219-
url: "bouncing-particles/bouncing-canvas-images.html?particleWidth=80&particleHeight=80&imageSrc=../resources/yin-yang.svg",
219+
url: "bouncing-particles/bouncing-canvas-images.html?particleWidth=80&particleHeight=80",
220220
name: "canvas bouncing SVG images"
221221
},
222222
{
223-
url: "bouncing-particles/bouncing-canvas-images.html?particleWidth=80&particleHeight=80&imageSrc=../resources/yin-yang.png",
223+
url: "bouncing-particles/bouncing-canvas-images.html?particleWidth=80&particleHeight=80",
224224
name: "canvas bouncing PNG images"
225225
},
226226
{
@@ -253,11 +253,11 @@ Suites.push(new Suite("SVG suite",
253253
name: "SVG bouncing gradient circles"
254254
},
255255
{
256-
url: "bouncing-particles/bouncing-svg-images.html?particleWidth=80&particleHeight=80&imageSrc=../resources/yin-yang.svg",
256+
url: "bouncing-particles/bouncing-svg-images.html?particleWidth=80&particleHeight=80",
257257
name: "SVG bouncing SVG images"
258258
},
259259
{
260-
url: "bouncing-particles/bouncing-svg-images.html?particleWidth=80&particleHeight=80&imageSrc=../resources/yin-yang.png",
260+
url: "bouncing-particles/bouncing-svg-images.html?particleWidth=80&particleHeight=80",
261261
name: "SVG bouncing PNG images"
262262
},
263263
]

MotionMark/resources/runner/motionmark.css

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2018 Apple Inc. All rights reserved.
2+
* Copyright (C) 2018-2020 Apple Inc. All rights reserved.
33
*
44
* Redistribution and use in source and binary forms, with or without
55
* modification, are permitted provided that the following conditions
@@ -347,6 +347,18 @@ body.images-loaded #intro {
347347
min-width: initial;
348348
transform: skewX(-10deg);
349349
}
350+
#about h3 {
351+
margin-top: 3em;
352+
}
353+
#about #log {
354+
font-size: .9em;
355+
list-style-type: none;
356+
margin-left: 0;
357+
padding-left: 0;
358+
}
359+
#about #log li {
360+
margin-top: .5em;
361+
}
350362

351363
@media screen and (min-width: 667px) {
352364
#about .body {

MotionMark/resources/runner/motionmark.js

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2018 Apple Inc. All rights reserved.
2+
* Copyright (C) 2018-2020 Apple Inc. All rights reserved.
33
*
44
* Redistribution and use in source and binary forms, with or without
55
* modification, are permitted provided that the following conditions
@@ -457,6 +457,19 @@ window.sectionsManager =
457457
};
458458

459459
window.benchmarkController = {
460+
benchmarkDefaultParameters: {
461+
"test-interval": 30,
462+
"display": "minimal",
463+
"tiles": "big",
464+
"controller": "ramp",
465+
"kalman-process-error": 1,
466+
"kalman-measurement-error": 4,
467+
"time-measurement": "performance",
468+
"warmup-length": 2000,
469+
"warmup-frame-count": 30,
470+
"first-frame-minimum-length": 0
471+
},
472+
460473
initialize: function()
461474
{
462475
document.title = Strings.text.title.replace("%s", Strings.version);
@@ -530,15 +543,7 @@ window.benchmarkController = {
530543

531544
startBenchmark: function()
532545
{
533-
var options = {
534-
"test-interval": 30,
535-
"display": "minimal",
536-
"tiles": "big",
537-
"controller": "ramp",
538-
"kalman-process-error": 1,
539-
"kalman-measurement-error": 4,
540-
"time-measurement": "performance"
541-
};
546+
var options = this.benchmarkDefaultParameters;
542547
this._startBenchmark(Suites, options, "test-container");
543548
},
544549

MotionMark/resources/runner/tests.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,6 @@ Suites.push(new Suite("MotionMark",
5151
url: "master/canvas-stage.html?pathType=line&lineCap=square",
5252
name: "Canvas Lines"
5353
},
54-
{
55-
url: "master/focus.html",
56-
name: "Focus"
57-
},
5854
{
5955
url: "master/image-data.html",
6056
name: "Images"

MotionMark/resources/strings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2015-2018 Apple Inc. All rights reserved.
2+
* Copyright (C) 2015-2020 Apple Inc. All rights reserved.
33
*
44
* Redistribution and use in source and binary forms, with or without
55
* modification, are permitted provided that the following conditions

MotionMark/tests/3d/resources/webgpu.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,13 @@ WebGLStage = Utilities.createSubclass(Stage,
9494

9595
this._timeBindGroupLayout = device.createBindGroupLayout({
9696
bindings: [
97-
{ binding: 0, visibility: GPUShaderStage.VERTEX, type: "uniform-buffer" },
97+
{ binding: 0, visibility: GPUShaderStageBit.VERTEX, type: "uniform-buffer" },
9898
],
9999
});
100100

101101
this._bindGroupLayout = device.createBindGroupLayout({
102102
bindings: [
103-
{ binding: 0, visibility: GPUShaderStage.VERTEX, type: "uniform-buffer" },
103+
{ binding: 0, visibility: GPUShaderStageBit.VERTEX, type: "uniform-buffer" },
104104
],
105105
});
106106

MotionMark/tests/bouncing-particles/resources/bouncing-canvas-images.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2015-2017 Apple Inc. All rights reserved.
2+
* Copyright (C) 2015-2023 Apple Inc. All rights reserved.
33
*
44
* Redistribution and use in source and binary forms, with or without
55
* modification, are permitted provided that the following conditions
@@ -49,7 +49,7 @@ BouncingCanvasImagesStage = Utilities.createSubclass(BouncingCanvasParticlesStag
4949
initialize: function(benchmark, options)
5050
{
5151
BouncingCanvasParticlesStage.prototype.initialize.call(this, benchmark, options);
52-
var imageSrc = options["imageSrc"] || "resources/yin-yang.svg";
52+
var imageSrc = options["imageSrc"] || "../resources/yin-yang.svg";
5353
this.imageElement = document.querySelector(".hidden[src=\"" + imageSrc + "\"]");
5454
},
5555

0 commit comments

Comments
 (0)