[Webkit-unassigned] [Bug 251261] Large allocations in a tight loop perform poorly when using the JavaScriptCore C and Objective-C APIs

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed May 24 00:33:23 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=251261

--- Comment #15 from Kasper Isager Dalsgarð <kasperisager at hey.com> ---
Thanks for detailing the additional steps!

1. I've run both my compiled programs (a.out) and the jsc helper (/System/Library/Frameworks/JavaScriptCore.framework/Versions/Current/Helpers/jsc) through `time` and the slowdown I reported was based on those timings. For the jsc helper, I stuffed the loop in a JavaScript file and passed that to jsc.

2. I've attached the GC logs for both the jsc helper and one of my programs. I think it's safe to say that the GC is on overdrive in my programs; I'm counting 215,577 occurrences of "GC END" for my programs, but only 5,874 occurrences in the case of jsc.

3. I've attached the CPU profiles for both the jsc helper and one of my programs. They look very similar to me, except for the total durations, and I'm unsure where to look specifically for GC activity.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230524/36330129/attachment.htm>


More information about the webkit-unassigned mailing list