WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
228257
[JSC] Add Speedometer2 jQuery-TodoMVC RegExp microbenchmark
https://bugs.webkit.org/show_bug.cgi?id=228257
Summary
[JSC] Add Speedometer2 jQuery-TodoMVC RegExp microbenchmark
Yusuke Suzuki
Reported
2021-07-23 17:18:53 PDT
[JSC] Add Speedometer2 jQuery-TodoMVC RegExp microbenchmark
Attachments
Patch
(11.31 MB, patch)
2021-07-23 18:04 PDT
,
Yusuke Suzuki
no flags
Details
Formatted Diff
Diff
Patch
(11.28 MB, patch)
2021-07-23 18:10 PDT
,
Yusuke Suzuki
mark.lam
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Yusuke Suzuki
Comment 1
2021-07-23 18:04:50 PDT
Created
attachment 434152
[details]
Patch
Yusuke Suzuki
Comment 2
2021-07-23 18:10:31 PDT
Created
attachment 434153
[details]
Patch
Yusuke Suzuki
Comment 3
2021-07-23 19:17:18 PDT
It is successfully capturing Speedometer2/jQuery-TodoMVC's regexps. Sampling rate: 1000.000000 microseconds. Total samples: 620 Top functions as <numSamples 'functionName#hash:sourceID'> 287 '/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi#<nil>:-1' 173 '/<script|<style|<link/i#<nil>:-1' 48 '/[&<>"'`=]/#<nil>:-1' 20 'test#<nil>:1' 15 'JSC::RegExpObject::execInline(JSC::JSGlobalObject*, JSC::JSString*)#<nil>:-1' 7 'JSC::ASTBuilder::Expression JSC::Parser<JSC::Lexer<char16_t> >::parseAssignmentExpression<JSC::ASTBuilder>(JSC::ASTBuilder&, JSC::Parser<JSC::Lexer<char16_t> >::ExpressionErrorClassifier&)#<nil>:-1' 5 'JSC::ASTBuilder::Expression JSC::Parser<JSC::Lexer<char16_t> >::parseMemberExpression<JSC::ASTBuilder>(JSC::ASTBuilder&)#<nil>:-1' 5 'JSC::Lexer<char16_t>::lexWithoutClearingLineTerminator(JSC::JSToken*, WTF::OptionSet<JSC::LexerFlags>, bool)#<nil>:-1' 3 'JSC::BytecodeGenerator::needsTDZCheck(JSC::Variable const&)#<nil>:-1' 3 'JSC::BytecodeGenerator::variable(JSC::Identifier const&, JSC::ThisResolutionType)#<nil>:-1' 2 '/^[\x20\t\r\n\f]+|((?:^|[^\\])(?:\\.)*)[\x20\t\r\n\f]+$/g#<nil>:-1' 2 'WTF::SmallSet<WTF::UniquedStringImpl*, WTF::PtrHashBase<WTF::UniquedStringImpl*, false>, 8u>::add(WTF::UniquedStringImpl*)#<nil>:-1'
Mark Lam
Comment 4
2021-07-23 20:00:19 PDT
Comment on
attachment 434153
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=434153&action=review
r=me
> JSTests/microbenchmarks/jquery-todomvc-regexp.js:3
You can just say `//@ runDefault`. Don't need the parens if you're not specifying any additional options.
Yusuke Suzuki
Comment 5
2021-07-23 20:33:25 PDT
(In reply to Mark Lam from
comment #4
)
> Comment on
attachment 434153
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=434153&action=review
> > r=me > > > JSTests/microbenchmarks/jquery-todomvc-regexp.js:3 > > > You can just say `//@ runDefault`. Don't need the parens if you're not > specifying any additional options.
Oops, fixed.
Yusuke Suzuki
Comment 6
2021-07-23 20:40:55 PDT
Committed
r280281
(
239939@main
): <
https://commits.webkit.org/239939@main
>
Radar WebKit Bug Importer
Comment 7
2021-07-23 20:41:22 PDT
<
rdar://problem/81047088
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug