Title: [235750] trunk/Tools
Revision
235750
Author
[email protected]
Date
2018-09-06 12:58:12 -0700 (Thu, 06 Sep 2018)

Log Message

[WHLSL] The test suite should log the compile time for the standard library
https://bugs.webkit.org/show_bug.cgi?id=189354

Patch by Thomas Denney <[email protected]> on 2018-09-06
Reviewed by Myles C. Maxfield.

The test suite previously only logged the time for test execution, and
not the compile time for the standard library.

* WebGPUShadingLanguageRI/Test.js:

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (235749 => 235750)


--- trunk/Tools/ChangeLog	2018-09-06 19:48:08 UTC (rev 235749)
+++ trunk/Tools/ChangeLog	2018-09-06 19:58:12 UTC (rev 235750)
@@ -1,3 +1,15 @@
+2018-09-06  Thomas Denney  <[email protected]>
+
+        [WHLSL] The test suite should log the compile time for the standard library
+        https://bugs.webkit.org/show_bug.cgi?id=189354
+
+        Reviewed by Myles C. Maxfield.
+
+        The test suite previously only logged the time for test execution, and
+        not the compile time for the standard library.
+
+        * WebGPUShadingLanguageRI/Test.js:
+
 2018-09-06  Wenson Hsieh  <[email protected]>
 
         [macOS] Cannot change font size at selection until font panel is shown

Modified: trunk/Tools/WebGPUShadingLanguageRI/Test.js (235749 => 235750)


--- trunk/Tools/WebGPUShadingLanguageRI/Test.js	2018-09-06 19:48:08 UTC (rev 235749)
+++ trunk/Tools/WebGPUShadingLanguageRI/Test.js	2018-09-06 19:58:12 UTC (rev 235750)
@@ -7649,9 +7649,11 @@
     let before = preciseTime();
 
     print("Compiling standard library...");
+    const compileBefore = preciseTime();
     yield;
     prepare();
-    print("    OK!");
+    const compileAfter = preciseTime();
+    print(`    OK, took ${Math.round((compileAfter - compileBefore) * 1000)} ms`);
 
     let names = [];
     for (let s in tests)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to