Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(190)

Unified Diff: PerformanceTests/Canvas/setFontAndMeasureTextSingleFont.html

Issue 1212813004: Adding a benchmark that measures the performance of using a single font for measuring text (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: updated desc Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: PerformanceTests/Canvas/setFontAndMeasureTextSingleFont.html
diff --git a/PerformanceTests/Canvas/setFontAndMeasureText.html b/PerformanceTests/Canvas/setFontAndMeasureTextSingleFont.html
similarity index 79%
copy from PerformanceTests/Canvas/setFontAndMeasureText.html
copy to PerformanceTests/Canvas/setFontAndMeasureTextSingleFont.html
index 9212cc0e22bc3276d18fff57867fe6334fb5520f..11f8bcc4fd8060317349099514fed235307911d4 100644
--- a/PerformanceTests/Canvas/setFontAndMeasureText.html
+++ b/PerformanceTests/Canvas/setFontAndMeasureTextSingleFont.html
@@ -7,20 +7,17 @@
var canvas = document.createElement("canvas");
var ctx = canvas.getContext("2d");
var font1 = "bold 15px Arial";
-var font2 = "italic 20pt Calibri";
function doTest() {
ctx.font = font1;
ctx.measureText("a");
- ctx.font = font2;
- ctx.measureText("b");
}
// Warm up the caches
doTest();
PerfTestRunner.measureRunsPerSecond({
- description: "Measures performance of setting the current font and measuring text on a canvas.",
+ description: "Measures performance of setting the current font and measuring text using the same font over and over.",
run: doTest
});
</script>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698