Skip to content

Commit e174a0f

Browse files
committed
Copy PerformanceTests/MotionMark to WebSites/browserbench.org/MotionMark1.2
https://bugs.webkit.org/show_bug.cgi?id=225287 Reviewed by Maciej Stachowiak and Ryosuke Niwa. This patch copies the files, and also updates the version in WebSites/browserbench.org to "1.2." It also updates the "about" page to include a description of the changes. No existing links have been updated to point to this new version. * MotionMark1.2/about.html: Added. * MotionMark1.2/developer.html: Added. * MotionMark1.2/index.html: Added. * MotionMark1.2/resources/debug-runner/d3.min.js: Added. * MotionMark1.2/resources/runner/benchmark-runner.js: Added. (BenchmarkRunnerState.Utilities.createClass): (this.next.currentSuite): (this.next.currentTest): (this.next.isFirstTest): (this.next.next): (this.next.frame.onload): (this.next.prepareCurrentTest): (this.next): (BenchmarkRunner.Utilities.createClass): (_appendFrame): (_removeFrame): (_runBenchmarkAndRecordResults): (step): (runAllSteps): (this._runNextIteration): (runMultipleIterations): (_finalize): * MotionMark1.2/resources/runner/crystal.svg: Added. * MotionMark1.2/resources/runner/lines.svg: Added. * MotionMark1.2/resources/runner/logo.svg: Added. * MotionMark1.2/resources/runner/motionmark.css: Added. (html,): (body): (body.showing-intro,): (body.showing-test-container): (body.images-loaded): (@media screen and (min-width: 667px) body): (@media screen and (min-width: 667px) body.showing-intro,): (@media screen and (min-width: 1025px) body.showing-intro,): (::selection): (.hidden): (section): (section.selected): (.logo): (.logo svg): (.logo div): (body.images-loaded .logo svg): (@media screen and (min-width: 667px) .logo svg): (@media screen and (min-width: 667px) .logo div): (section .body): (section .body p): (@media screen and (min-width: 667px) section .body): (@media screen and (min-width: 667px) section button): (button): (body.images-loaded button): (button:hover): (button:active): (button:disabled): (@media print button): (.portrait-orientation-check): (@media screen and (max-device-width: 1025px) and (orientation: portrait) .portrait-orientation-check): (@media screen and (max-device-width: 1025px) and (orientation: portrait) .landscape-orientation-check): (@Keyframes background-fade): (@Keyframes background-color): (12%, 20%): (22%, 30%): (32%, 40%): (42%, 50%): (52%, 60%): (62%, 70%): (72%, 80%): (82%, 90%): (92%, 100%): (@Keyframes foreground-color): (#intro, #about): (#intro): (body.images-loaded #intro): (#about .body): (#about li): (#about button): (#about h3): (#about #log): (#about #log li): (@media screen and (min-width: 667px) #about .body): (@media screen and (min-width: 667px) #about ol, #about ul): (#intro a, #about a,): (.frame-container): (.frame-container > iframe): (body.small .frame-container): (body.medium .frame-container): (body.large .frame-container): (#results): (#results .body): (#results .score-container): (#results .table-container): (#results .table-container > div): (#results .score): (#results .confidence): (#results table): (#results table td,): (#results table td.suites-separator): (#results table tr:nth-child(even)): (#results #results-header): (#results #results-score): (#results #results-data span): (#results #results-header td,): (#results #results-score td,): (#results #results-score td): (@media screen and (min-width: 667px) #results .score,): (.detail span): (body.small .detail .small,): (#overlay): (@supports (-webkit-backdrop-filter: blur(10px))): (#overlay > div): (#overlay > div div): * MotionMark1.2/resources/runner/motionmark.js: Added. (ResultsDashboard.Utilities.createClass): (this._processData.push): (this._processData._processData): (this._processData.findRegression): (this._processData.): (this._processData.calculateScore): (this._processData.get data): (this._processData.get results): (this._processData.get options): (this._processData.get version): (this._processData._getResultsProperty): (this._processData.get score): (this._processData.get scoreLowerBound): (this._processData.get scoreUpperBound): (this._processData): (ResultsTable.Utilities.createClass): (this.clear.clear): (this.clear._addHeader): (this.clear._addBody): (this.clear._addEmptyRow): (this.clear): (this.clear._addIteration): (this.clear.showIterations): (window.benchmarkRunnerClient.initialize): (window.benchmarkRunnerClient.willStartFirstIteration): (window.benchmarkRunnerClient.didRunSuites): (window.benchmarkRunnerClient.didRunTest): (window.benchmarkRunnerClient.didFinishLastIteration): (window.sectionsManager.showSection): (window.sectionsManager.setSectionVersion): (window.sectionsManager.setSectionScore): (window.sectionsManager.populateTable): (window.benchmarkController.initialize): (window.benchmarkController.determineCanvasSize): (window.benchmarkController.addOrientationListenerIfNecessary): (window.benchmarkController._orientationChanged): (window.benchmarkController.updateStartButtonState): (window.benchmarkController._startBenchmark): (window.benchmarkController.startBenchmark): (window.benchmarkController.showResults): (window.benchmarkController.handleKeyPress): (window.benchmarkController.hideDebugInfo): (window.benchmarkController.data.onclick): (window.benchmarkController.button.onclick): (window.benchmarkController.showDebugInfo): (window.benchmarkController.selectResults): * MotionMark1.2/resources/runner/tests.js: Added. (Headers.details.text): (Suite): (suiteFromName): * MotionMark1.2/resources/statistics.js: Added. (Pseudo.resetRandomSeed): (Pseudo.random): (Statistics.sampleMean): (Statistics.unbiasedSampleStandardDeviation): (Statistics.geometricMean): (Statistics.cdf): (Statistics.erf): (Statistics.largestDeviationPercentage): (Experiment.Utilities.createClass): (this.reset.reset): (this.reset.get sampleCount): (this.reset.sample): (this.reset.mean): (this.reset.standardDeviation): (this.reset.cdf): (this.reset.percentage): (this.reset.concern): (this.reset.score): (this.reset): (Regression.Utilities.createClass): (valueAt): (setBest): (_calculateRegression): (bootstrap): * MotionMark1.2/resources/strings.js: Added. * MotionMark1.2/tests/3d/resources/webgl.js: Added. (Stage.call.initialize): (Stage.call._getFunctionSource): (Stage.call._resetIfNecessary): (Stage.call.tune): (Stage.call.animate): (Stage.call.complexity): (Stage.call): * MotionMark1.2/tests/3d/resources/webgpu.js: Added. (constant.float.uniforms.register): (Stage.call.initialize): (Stage.call._getFunctionSource): (Stage.call._resetIfNecessary): (Stage.call.tune): (Stage.call.animate): (Stage.call.complexity): (Stage.call): (new.WebGLStage.waitUntilReady): (new.WebGLStage): * MotionMark1.2/tests/3d/triangles-webgl.html: Added. * MotionMark1.2/tests/3d/triangles-webgpu.html: Added. * MotionMark1.2/tests/bouncing-particles/bouncing-canvas-images.html: Added. * MotionMark1.2/tests/bouncing-particles/bouncing-canvas-shapes.html: Added. * MotionMark1.2/tests/bouncing-particles/bouncing-css-images.html: Added. * MotionMark1.2/tests/bouncing-particles/bouncing-css-shapes.html: Added. * MotionMark1.2/tests/bouncing-particles/bouncing-svg-images.html: Added. * MotionMark1.2/tests/bouncing-particles/bouncing-svg-shapes.html: Added. * MotionMark1.2/tests/bouncing-particles/bouncing-tagged-images.html: Added. * MotionMark1.2/tests/bouncing-particles/resources/bouncing-canvas-images.js: Added. (_draw): (BouncingCanvasParticlesStage.call.initialize): (BouncingCanvasParticlesStage.call.createParticle): (BouncingCanvasParticlesStage.call): * MotionMark1.2/tests/bouncing-particles/resources/bouncing-canvas-particles.js: Added. (applyRotation): (applyClipping): (_draw): (animate): (BouncingParticlesStage.call.initialize): (BouncingParticlesStage.call.animate): (BouncingParticlesStage.call): * MotionMark1.2/tests/bouncing-particles/resources/bouncing-canvas-shapes.js: Added. (this._color1.Stage.randomColor._applyFill): (this._color1.Stage.randomColor._drawShape): (this._color1.Stage.randomColor._draw): (this._color1.Stage.randomColor): (BouncingCanvasParticlesStage.call.initialize): (BouncingCanvasParticlesStage.call.createParticle): (BouncingCanvasParticlesStage.call): * MotionMark1.2/tests/bouncing-particles/resources/bouncing-css-images.js: Added. (this._move._move): (this._move.animate): (this._move): (BouncingParticlesStage.call.initialize): (BouncingParticlesStage.call.createParticle): (BouncingParticlesStage.call.particleWillBeRemoved): (BouncingParticlesStage.call): * MotionMark1.2/tests/bouncing-particles/resources/bouncing-css-shapes.js: Added. (switch): (this._move._createSpan): (this._move._move): (this._move.animate): (this._move): (BouncingParticlesStage.call.initialize): (BouncingParticlesStage.call.createParticle): (BouncingParticlesStage.call.particleWillBeRemoved): (BouncingParticlesStage.call): * MotionMark1.2/tests/bouncing-particles/resources/bouncing-particles.js: Added. (BouncingParticle): (BouncingParticle.prototype.get center): (BouncingParticle.prototype.animate): (initialize): (parseShapeParameters): (animate): (tune): (complexity): * MotionMark1.2/tests/bouncing-particles/resources/bouncing-svg-images.js: Added. (BouncingSvgParticlesStage.call.initialize): (BouncingSvgParticlesStage.call.createParticle): (BouncingSvgParticlesStage.call): * MotionMark1.2/tests/bouncing-particles/resources/bouncing-svg-particles.js: Added. (_applyClipping): (_move): (animate): (BouncingParticlesStage.call._createDefs): (BouncingParticlesStage.call._ensureDefsIsCreated): (BouncingParticlesStage.call._createClipStar): (BouncingParticlesStage.call.ensureClipStarIsCreated): (BouncingParticlesStage.call.particleWillBeRemoved): (BouncingParticlesStage.call): * MotionMark1.2/tests/bouncing-particles/resources/bouncing-svg-shapes.js: Added. (this._move._createShape): (this._move._applyFill): (this._move): (BouncingSvgParticlesStage.call.initialize): (BouncingSvgParticlesStage.call.createGradient): (BouncingSvgParticlesStage.call.createParticle): (BouncingSvgParticlesStage.call.particleWillBeRemoved): (BouncingSvgParticlesStage.call): * MotionMark1.2/tests/bouncing-particles/resources/bouncing-tagged-images.js: Added. (this._move._move): (this._move.animate): (this._move): (BouncingParticlesStage.call.): (BouncingParticlesStage.call.initialize): (BouncingParticlesStage.call.img.onload): (BouncingParticlesStage.call._loadImage): (BouncingParticlesStage.call.createParticle): (BouncingParticlesStage.call.particleWillBeRemoved): (BouncingParticlesStage.call): (new.BouncingTaggedImagesStage.waitUntilReady): (new.BouncingTaggedImagesStage): * MotionMark1.2/tests/bouncing-particles/resources/image1.jpg: Added. * MotionMark1.2/tests/bouncing-particles/resources/image2.jpg: Added. * MotionMark1.2/tests/bouncing-particles/resources/image3.jpg: Added. * MotionMark1.2/tests/bouncing-particles/resources/image4.jpg: Added. * MotionMark1.2/tests/bouncing-particles/resources/image5.jpg: Added. * MotionMark1.2/tests/dom/compositing-transforms.html: Added. * MotionMark1.2/tests/dom/focus.html: Added. * MotionMark1.2/tests/dom/leaves.html: Added. * MotionMark1.2/tests/dom/multiply.html: Added. * MotionMark1.2/tests/dom/particles.html: Added. * MotionMark1.2/tests/dom/resources/compositing-transforms.js: Added. (this._move._move): (this._move.animate): (this._move): (BouncingParticlesStage.call.initialize): (BouncingParticlesStage.call.createParticle): (BouncingParticlesStage.call.particleWillBeRemoved): (BouncingParticlesStage.call): * MotionMark1.2/tests/dom/resources/dom-particles.js: Added. (Particle.call.reset): (Particle.call.move): (Particle.call): (ParticlesStage.call.initialize): (ParticlesStage.call.createParticle): (ParticlesStage.call.willRemoveParticle): (ParticlesStage.call): * MotionMark1.2/tests/dom/resources/focus.js: Added. (FocusElement.Utilities.createClass): (hide): (show): (animate): (Stage.call.initialize): (Stage.call.complexity): (Stage.call.tune): (Stage.call.animate): (Stage.call.getBlurValue): (Stage.call.getOpacityValue): (Stage.call): * MotionMark1.2/tests/dom/resources/leaves.js: Added. (SuperLeaf.call.move): (SuperLeaf.call): (switch): * MotionMark1.2/tests/dom/resources/multiply.js: Added. (switch): * MotionMark1.2/tests/master/canvas-stage.html: Added. * MotionMark1.2/tests/master/design.html: Added. * MotionMark1.2/tests/master/focus.html: Added. * MotionMark1.2/tests/master/image-data.html: Added. * MotionMark1.2/tests/master/leaves.html: Added. * MotionMark1.2/tests/master/multiply.html: Added. * MotionMark1.2/tests/master/resources/canvas-stage.js: Added. (initialize): (tune): (animate): (complexity): * MotionMark1.2/tests/master/resources/canvas-tests.js: Added. (CanvasLineSegment.Utilities.createClass): (draw): (CanvasArc.Utilities.createClass): (CanvasLinePoint.Utilities.createClass): (randomPoint): (SimpleCanvasStage.call.initialize): (SimpleCanvasStage.call.animate): (SimpleCanvasStage.call): (switch): * MotionMark1.2/tests/master/resources/compass.svg: Added. * MotionMark1.2/tests/master/resources/compass100.png: Added. * MotionMark1.2/tests/master/resources/console.svg: Added. * MotionMark1.2/tests/master/resources/console100.png: Added. * MotionMark1.2/tests/master/resources/contribute.svg: Added. * MotionMark1.2/tests/master/resources/contribute100.png: Added. * MotionMark1.2/tests/master/resources/debugger.svg: Added. * MotionMark1.2/tests/master/resources/debugger100.png: Added. * MotionMark1.2/tests/master/resources/design.js: Added. (initialize): (tune): (animate): (complexity): * MotionMark1.2/tests/master/resources/focus.js: Added. (FocusElement.Utilities.createClass): (this.animate.hide): (this.animate.show): (this.animate.animate): (this.animate): (Stage.call.initialize): (Stage.call.complexity): (Stage.call.tune): (Stage.call.animate): (Stage.call): * MotionMark1.2/tests/master/resources/image-data.js: Added. (initialize): (_loadImage): (tune): (_createTestElement): (_refreshElement): (animate): (_getRandomNeighboringPixelIndex): (complexity): (new.ImageDataStage.waitUntilReady): (new.ImageDataStage): * MotionMark1.2/tests/master/resources/inspector.svg: Added. * MotionMark1.2/tests/master/resources/inspector100.png: Added. * MotionMark1.2/tests/master/resources/layout.svg: Added. * MotionMark1.2/tests/master/resources/layout100.png: Added. * MotionMark1.2/tests/master/resources/leaves.js: Added. (Particle.call.reset): (Particle.call.animate): (Particle.call.move): (Particle.call): (initialize): (img.onload): (_loadImage): (animate): (createParticle): (willRemoveParticle): (new.ParticlesStage.waitUntilReady): (new.ParticlesStage): * MotionMark1.2/tests/master/resources/multiply.js: Added. (initialize): (_addTile): (complexity): (tune): (animate): * MotionMark1.2/tests/master/resources/particles.js: Added. (Particle): (Particle.prototype.reset): (Particle.prototype.animate): (Particle.prototype.move): (animate): (tune): (complexity): * MotionMark1.2/tests/master/resources/performance.svg: Added. * MotionMark1.2/tests/master/resources/performance100.png: Added. * MotionMark1.2/tests/master/resources/script.svg: Added. * MotionMark1.2/tests/master/resources/script100.png: Added. * MotionMark1.2/tests/master/resources/shortcuts.svg: Added. * MotionMark1.2/tests/master/resources/shortcuts100.png: Added. * MotionMark1.2/tests/master/resources/standards.svg: Added. * MotionMark1.2/tests/master/resources/standards100.png: Added. * MotionMark1.2/tests/master/resources/storage.svg: Added. * MotionMark1.2/tests/master/resources/storage100.png: Added. * MotionMark1.2/tests/master/resources/styles.svg: Added. * MotionMark1.2/tests/master/resources/styles100.png: Added. * MotionMark1.2/tests/master/resources/suits.js: Added. (this.initialize.initialize): (this.initialize.reset): (this.initialize.move): (this.initialize): (ParticlesStage.call.initialize): (ParticlesStage.call.createParticle): (ParticlesStage.call.willRemoveParticle): (ParticlesStage.call): * MotionMark1.2/tests/master/resources/timeline.svg: Added. * MotionMark1.2/tests/master/resources/timeline100.png: Added. * MotionMark1.2/tests/master/suits.html: Added. * MotionMark1.2/tests/resources/main.js: Added. (Sampler.Utilities.createClass): (record): (processSamples): (Controller.Utilities.createClass): (set isFrameLengthEstimatorEnabled): (start): (recordFirstSample): (mark): (containsMark): (filterOutOutliers): (_measureAndResetInterval): (update): (registerFrameTime): (intervalHasConcluded): (didFinishInterval): (tune): (shouldStop): (results): (_processComplexitySamples): (_processMarks): (_processControllerSamples): (_getComplexity): (_getFrameLength): (Stage.Utilities.createClass): (Stage.Utilities.createClass.initialize): (Stage.Utilities.createClass.get element): (Stage.Utilities.createClass.get size): (Stage.Utilities.createClass.complexity): (Stage.Utilities.createClass.tune): (Stage.Utilities.createClass.animate): (Stage.Utilities.createClass.clear): (random): (randomBool): (randomSign): (randomInt): (randomPosition): (randomSquareSize): (randomVelocity): (randomAngle): (randomColor): (randomStyleMixBlendMode): (randomStyleFilter): (randomElementInArray): (rotatingColor): (dateFractionalValue): (dateCounterValue): (randomRotater): (Rotater.Utilities.createClass): (get interval): (next): (degree): (rotateZ): (rotate): (Benchmark.Utilities.createClass): (get stage): (get timestamp): (backgroundColor): (run): (waitUntilReady): (_animateLoop): * MotionMark1.2/tests/resources/math.js: Added. (this._gain.error.sample): (this._gain.error.reset): (this._gain.error): (PIDController.Utilities.createClass): (_yPosition): (_distanceUltimate): (_distance): (_gainIncrement): (_updateStage): (_tuneP): (_tunePID): (_tune): (_saturate): (tune): * MotionMark1.2/tests/resources/stage.css: Added. (html): (body): (#stage): (#center-text): * MotionMark1.2/tests/resources/star.svg: Added. * MotionMark1.2/tests/resources/yin-yang.png: Added. * MotionMark1.2/tests/resources/yin-yang.svg: Added. * MotionMark1.2/tests/simple/resources/simple-canvas-paths.js: Added. (CanvasLineSegment.Utilities.createClass): (this._lineWidth.Stage.randomInt.draw): (this._lineWidth.Stage.randomInt): (CanvasLinePoint.Utilities.createClass): (draw): (CanvasQuadraticSegment.Utilities.createClass): (CanvasQuadraticPoint.Utilities.createClass): (CanvasBezierSegment.Utilities.createClass): (CanvasBezierPoint.Utilities.createClass): (CanvasArcToSegment.Utilities.createClass): (CanvasArcToSegmentFill.Utilities.createClass): (CanvasArcToSegment.call.draw): (CanvasArcToSegment.call): (CanvasArcSegment.Utilities.createClass): (CanvasArcSegmentFill.Utilities.createClass): (CanvasArcSegment.call.draw): (CanvasArcSegment.call): (CanvasRect.Utilities.createClass): (CanvasRectFill.Utilities.createClass): (CanvasRect.call.draw): (CanvasRect.call): (CanvasEllipse.Utilities.createClass): (CanvasEllipseFill.Utilities.createClass): (CanvasEllipse.call.draw): (CanvasEllipse.call): (CanvasStroke.Utilities.createClass): (this._object.new.draw): (this._object.new): (CanvasFill.Utilities.createClass): (SimpleCanvasStage.call.animate): (SimpleCanvasStage.call): (SimpleCanvasStage.call.initialize): (SimpleCanvasPathStrokeStage.call.initialize): (SimpleCanvasPathStrokeStage.call): (initialize): (animate): (switch): * MotionMark1.2/tests/simple/resources/simple-canvas.js: Added. (tune): (animate): (complexity): * MotionMark1.2/tests/simple/resources/tiled-canvas-image.js: Added. (CanvasImageTile.Utilities.createClass): (getImageData): (putImageData): (Stage.call.initialize): (Stage.call._setupTiles): (Stage.call._nextTilePosition): (Stage.call.tune): (Stage.call._drawBackground): (Stage.call.animate): (Stage.call.complexity): (Stage.call): * MotionMark1.2/tests/simple/simple-canvas-paths.html: Added. * MotionMark1.2/tests/simple/tiled-canvas-image.html: Added. * MotionMark1.2/tests/svg/suits.html: Added. * MotionMark1.2/tests/svg/suits.js: Added. (this.initialize.move): (this.initialize): (this.initialize.reset): (switch): * MotionMark1.2/tests/template/resources/template-canvas.js: Added. (TemplateCanvasObject): (TemplateCanvasObject.prototype._draw): (TemplateCanvasObject.prototype.animate): (Stage.call.initialize): (Stage.call.tune): (Stage.call.animate): (Stage.call): (new.TemplateCanvasStage.waitUntilReady): (new.TemplateCanvasStage): * MotionMark1.2/tests/template/resources/template-css.js: Added. (Stage.call.initialize): (Stage.call.tune): (Stage.call.animate): (Stage.call): * MotionMark1.2/tests/template/resources/template-svg.js: Added. (Stage.call.initialize): (Stage.call.tune): (Stage.call.animate): (Stage.call): * MotionMark1.2/tests/template/template-canvas.html: Added. * MotionMark1.2/tests/template/template-css.html: Added. * MotionMark1.2/tests/template/template-svg.html: Added. * MotionMark1.2/tests/text/design-6.html: Added. * MotionMark1.2/tests/text/design-6.js: Added. (switch): (dataset.forEach): * MotionMark1.2/tests/text/design.html: Added. * MotionMark1.2/tests/text/design.js: Added. (switch): (dataset.forEach): Canonical link: https://commits.webkit.org/237235@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@276889 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 parent dbcfbd8 commit e174a0f

File tree

119 files changed

+13766
-0
lines changed

Some content is hidden

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

119 files changed

+13766
-0
lines changed

MotionMark1.2/about.html

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
<!--
2+
Copyright (C) 2015-2020 Apple Inc. All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without
5+
modification, are permitted provided that the following conditions
6+
are met:
7+
1. Redistributions of source code must retain the above copyright
8+
notice, this list of conditions and the following disclaimer.
9+
2. Redistributions in binary form must reproduce the above copyright
10+
notice, this list of conditions and the following disclaimer in the
11+
documentation and/or other materials provided with the distribution.
12+
13+
THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
14+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
15+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16+
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
17+
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
18+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
19+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
20+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
21+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
22+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
23+
THE POSSIBILITY OF SUCH DAMAGE.
24+
-->
25+
<!DOCTYPE html>
26+
<html>
27+
<head>
28+
<meta charset="utf-8">
29+
<meta name="viewport" content="width=device-width, user-scalable=no">
30+
31+
<title>About MotionMark</title>
32+
33+
<link rel="stylesheet" href="resources/runner/motionmark.css">
34+
35+
<script src="resources/strings.js"></script>
36+
</head>
37+
<body class="images-loaded">
38+
<main>
39+
<section id="about" class="selected">
40+
<div class="logo"><svg><use xlink:href="resources/runner/logo.svg#root" /></svg></div>
41+
42+
<div class="body">
43+
<h1>About MotionMark <span class="version"></span></h1>
44+
45+
<p>MotionMark is a web benchmark that focuses on graphics performance. It draws multiple rendering elements, each of which uses the same set of graphics primitives. An element could be an SVG node, an HTML element with CSS style, or a series of canvas operations. Slight variations among the elements avoid trivial caching optimizations by the browser. Although fairly simple, the effects were chosen to reflect techniques commonly used on the web. Tests are visually rich, being designed to stress the graphics system rather than JavaScript.</p>
46+
47+
<p>After an initial warm-up, each test runs for a fixed period of time. Based on measurements of the browser’s frame rate, MotionMark adjusts the number of elements to draw, and concentrates around a narrow range where the browser starts to fail animating at 60 frames per second (fps). A piecewise linear regression is applied to the data, and the change point is reported as the test's score. The confidence interval is calculated through <a href="https://en.wikipedia.org/wiki/Bootstrapping_(statistics)">bootstrapping</a>. MotionMark calculates the geometric mean of all of the tests’ scores to report the single score for the run.</p>
48+
49+
<p>MotionMark can be run on a wide variety of devices. Using the device’s screen dimensions it adjusts the drawing area into one of three sizes:</p>
50+
51+
<ol>
52+
<li>Small (568 x 320), targeted at mobile phones</li>
53+
<li>Medium (900 x 600), targeted at tablets and laptops</li>
54+
<li>Large (1600 x 800), targeted at desktops</li>
55+
</ol>
56+
57+
<p>The design of the benchmark is modular. This makes it easy to write new tests and use different controllers, which can assist a developer working on improving the performance of a web engine. For the purpose of a public benchmark, the MotionMark master suite tests a variety of drawing operations using techniques including CSS, SVG, and Canvas:</p>
58+
59+
<ul>
60+
<li><strong>Multiply</strong>: CSS border radius, transforms, opacity</li>
61+
<li><strong>Arcs and Fills</strong>: Canvas path fills and arcs</li>
62+
<li><strong>Leaves</strong>: CSS-transformed elements, opacity</li>
63+
<li><strong>Paths</strong>: Canvas line, quadratic, and Bezier paths</li>
64+
<li><strong>Lines</strong>: Canvas line segments</li>
65+
<li><strong>Focus</strong>: CSS blur filter, opacity</li>
66+
<li><strong>Images</strong>: Canvas <code>getImageData()</code> and <code>putImageData()</code></li>
67+
<li><strong>Design</strong>: HTML text rendering</li>
68+
<li><strong>Suits</strong>: SVG clip paths, gradients and transforms</li>
69+
</ul>
70+
71+
<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>
72+
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+
82+
<center><button onclick="location.href='./'">Return to homepage</button></center>
83+
</div>
84+
</section>
85+
</main>
86+
87+
<script>
88+
document.title = "About MotionMark " + Strings.version;
89+
document.querySelector(".version").textContent = Strings.version;
90+
</script>
91+
</body>
92+
</html>

MotionMark1.2/developer.html

Lines changed: 201 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,201 @@
1+
<!--
2+
Copyright (C) 2015-2020 Apple Inc. All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without
5+
modification, are permitted provided that the following conditions
6+
are met:
7+
1. Redistributions of source code must retain the above copyright
8+
notice, this list of conditions and the following disclaimer.
9+
2. Redistributions in binary form must reproduce the above copyright
10+
notice, this list of conditions and the following disclaimer in the
11+
documentation and/or other materials provided with the distribution.
12+
13+
THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
14+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
15+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16+
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
17+
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
18+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
19+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
20+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
21+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
22+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
23+
THE POSSIBILITY OF SUCH DAMAGE.
24+
-->
25+
<!DOCTYPE html>
26+
<html>
27+
<head>
28+
<meta charset="utf-8">
29+
<meta name="viewport" content="width=device-width, user-scalable=no">
30+
31+
<title>MotionMark developer</title>
32+
33+
<link rel="stylesheet" href="resources/runner/motionmark.css">
34+
<link rel="stylesheet" href="resources/debug-runner/motionmark.css">
35+
36+
<script src="resources/strings.js"></script>
37+
<script src="resources/extensions.js"></script>
38+
<script src="resources/statistics.js"></script>
39+
40+
<script src="resources/runner/tests.js" charset="utf-8"></script>
41+
<script src="resources/debug-runner/tests.js" charset="utf-8"></script>
42+
<script src="resources/runner/motionmark.js"></script>
43+
<script src="resources/debug-runner/motionmark.js" charset="utf-8"></script>
44+
45+
<script src="resources/runner/benchmark-runner.js"></script>
46+
<script src="resources/debug-runner/d3.min.js"></script>
47+
<script src="resources/debug-runner/graph.js" charset="utf-8"></script>
48+
</head>
49+
<body class="showing-intro">
50+
<main>
51+
<section id="intro" class="selected">
52+
<header>
53+
<h1>MotionMark</h1>
54+
<h2>version <span class="version"></span></h2>
55+
</header>
56+
<div class="body">
57+
<div>
58+
<div id="suites">
59+
<h2>Suites:</h2>
60+
<ul class="tree"></ul>
61+
<div><span id="drop-target">Drop results here</span></div>
62+
</div>
63+
<div id="options">
64+
<h2>Options:</h2>
65+
<form name="benchmark-options">
66+
<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>
76+
<li>
77+
<label>Test length: <input type="number" id="test-interval" value="30"> seconds each</label>
78+
</li>
79+
<li>
80+
<h3>Display:</h3>
81+
<ul>
82+
<li><label><input name="display" type="radio" value="minimal" checked> Minimal</label></li>
83+
<li><label><input name="display" type="radio" value="progress-bar"> Progress bar</label></li>
84+
</ul>
85+
</li>
86+
<li>
87+
<h3>Tiles:</h3>
88+
<ul>
89+
<li><label><input name="tiles" type="radio" value="big" checked> Big tiles</label></li>
90+
<li><label><input name="tiles" type="radio" value="classic"> Classic tiles (512x512)</label></li>
91+
</ul>
92+
</li>
93+
<li>
94+
<h3>Adjusting the test complexity:</h3>
95+
<ul>
96+
<li><label><input name="controller" type="radio" value="ramp" checked> Ramp</label></li>
97+
<li><label><input name="controller" type="radio" value="fixed"> Keep at a fixed complexity</label></li>
98+
<li><label><input name="controller" type="radio" value="adaptive"> Maintain target FPS</label></li>
99+
</ul>
100+
</li>
101+
<li>
102+
<label>Target frame rate: <input type="number" id="frame-rate" value="50"> FPS</label>
103+
</li>
104+
<li>
105+
<h3>Time measurement method:</h3>
106+
<ul>
107+
<li><label><input name="time-measurement" type="radio" value="performance" checked> <code>performance.now()</code> (if available)</label></li>
108+
<li><label><input name="time-measurement" type="radio" value="raf"> <code>requestAnimationFrame()</code> timestamp</label></li>
109+
<li><label><input name="time-measurement" type="radio" value="date"> <code>Date.now()</code></label></li>
110+
</ul>
111+
</li>
112+
</ul>
113+
</form>
114+
</div>
115+
</div>
116+
<p>For accurate results, please take the browser window full screen, or rotate the device to landscape orientation.</p>
117+
<div class="start-benchmark">
118+
<p class="hidden">Please rotate the device to orientation before starting.</p>
119+
<button id="run-benchmark" onclick="benchmarkController.startBenchmark()">Run benchmark</button>
120+
</div>
121+
</div>
122+
</section>
123+
124+
<section id="test-container">
125+
<div id="running-test" class="frame-container"></div>
126+
<div id="progress">
127+
<div id="progress-completed"></div>
128+
</div>
129+
</section>
130+
131+
<section id="results">
132+
<div class="body">
133+
<h1>MotionMark score</h1>
134+
<div class="detail">
135+
<span class="small">on a small screen (phone)</span>
136+
<span class="medium">on a medium screen (laptop, tablet)</span>
137+
<span class="large">on a large screen (desktop)</span>
138+
</div>
139+
<div>version <span class="version"></span></div>
140+
<p class="score" onclick="benchmarkController.showDebugInfo()"></p>
141+
<p class="confidence"></p>
142+
<div id="results-tables" class="table-container">
143+
<div>
144+
<table id="results-score"></table>
145+
<table id="results-data"></table>
146+
</div>
147+
<table id="results-header"></table>
148+
</div>
149+
<button onclick="benchmarkController.restartBenchmark()">Test Again</button>
150+
<p>
151+
'j': Show JSON results<br/>
152+
's': Select various results for copy/paste (use repeatedly to cycle)
153+
</p>
154+
</div>
155+
</section>
156+
<section id="test-graph">
157+
<div class="body">
158+
<header>
159+
<button onclick="benchmarkController.showResults()">&lt; Results</button>
160+
<h1>Graph:</h1>
161+
<p class="score"></p>
162+
<p class="confidence"></p>
163+
</header>
164+
<nav>
165+
<form name="graph-type">
166+
<ul>
167+
<li><label><input type="radio" name="graph-type" value="time"> Time graph</label></li>
168+
<li><label><input type="radio" name="graph-type" value="complexity" checked> Complexity graph</label></li>
169+
</ul>
170+
</form>
171+
<form name="time-graph-options">
172+
<ul>
173+
<li><label><input type="checkbox" name="markers" checked> Markers</label>
174+
<span>time: <span class="time"></span></span></li>
175+
<li><label><input type="checkbox" name="averages" checked> Averages</label></li>
176+
<li><label><input type="checkbox" name="complexity" checked> Complexity</label>
177+
<span class="complexity"></span></li>
178+
<li><label><input type="checkbox" name="rawFPS" checked> Raw FPS</label>
179+
<span class="rawFPS"></span></li>
180+
<li><label><input type="checkbox" name="filteredFPS" checked> Filtered FPS</label>
181+
<span class="filteredFPS"></span></li>
182+
<li><label><input type="checkbox" name="regressions" checked> Regressions</label></li>
183+
</ul>
184+
</form>
185+
<form name="complexity-graph-options">
186+
<ul class="series">
187+
<li><label><input type="checkbox" name="series-raw" checked> Series raw</label></li>
188+
</ul>
189+
<ul>
190+
<li><label><input type="checkbox" name="regression-time-score"> Controller score</label></li>
191+
<li><label><input type="checkbox" name="bootstrap-score" checked> Bootstrap score and histogram</label></li>
192+
<li><label><input type="checkbox" name="complexity-regression-aggregate-raw" checked> Regression, series raw</label><span id="complexity-regression-aggregate-raw"></span></li>
193+
</ul>
194+
</form>
195+
</nav>
196+
<div id="test-graph-data"></div>
197+
</div>
198+
</section>
199+
</main>
200+
</body>
201+
</html>

0 commit comments

Comments
 (0)