Changeset 282465 in webkit
- Timestamp:
- Sep 15, 2021, 12:52:18 PM (5 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
Scripts/run-jsc-stress-tests (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r282431 r282465 1 2021-09-15 Geza Lore <gezalore@gmail.com> 2 3 Cache resource paths in run-jsc-stress-tests for speedup 4 https://bugs.webkit.org/show_bug.cgi?id=230263 5 6 Reviewed by Adrian Perez de Castro. 7 8 A large portion of the serial startup time of run-jsc-stress-tests is 9 just re-computing file system paths of bundle resources over and over 10 again. Cache results for a 40% speedup of the test enumeration phase. 11 12 * Scripts/run-jsc-stress-tests: 13 1 14 2021-09-14 Don Olmstead <don.olmstead@sony.com> 2 15 -
trunk/Tools/Scripts/run-jsc-stress-tests
r281438 r282465 588 588 end 589 589 590 591 # Frequently repeated path computations. Cache results for speed. 592 $bundleResourcePathCache = Hash.new do |h, key| 593 resourcePath, benchmarkDirectory, dir = key 594 benchmarkDirectory.each_filename { 595 | pathComponent | 596 dir = dir.parent 597 } 598 h[key] = dir + resourcePath 599 end 600 590 601 def pathToBundleResourceFromBenchmarkDirectory(resourcePath) 591 dir = Pathname.new(".") 592 $benchmarkDirectory.each_filename { 593 | pathComponent | 594 dir += ".." 595 } 596 dir + resourcePath 602 $bundleResourcePathCache[[resourcePath, $benchmarkDirectory, Pathname.new(".")]] 597 603 end 598 604
Note:
See TracChangeset
for help on using the changeset viewer.