Closed
Bug 908168
Opened 12 years ago
Closed 12 years ago
make perf: Measure the time it takes to create a bare-bones context
Categories
(L20n :: JS Library, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: stas, Assigned: stas)
Details
Attachments
(1 file)
|
1.39 KB,
patch
|
zbraniecki
:
review+
|
Details | Diff | Splinter Review |
For some performance optimizations, it would be useful to measure the time it takes to create a very simple context.
var ctx = L20n.getContext();
ctx.addResource('<foo "Foo">');
ctx.requestLocales();
By using addResource we eliminate the IO bias. The language negotiation still happens behind the scenes with i-default set as the default locale.
This will only be possible in benchmark.node.js, since neither jsshell nor d8 provide XHR or setTimeout (and requestLocales is asynchronous by definition).
| Assignee | ||
Comment 1•12 years ago
|
||
Assignee: nobody → stas
Attachment #794005 -
Flags: review?(gandalf)
Updated•12 years ago
|
Attachment #794005 -
Flags: review?(gandalf) → review+
| Assignee | ||
Comment 2•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•