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)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: stas, Assigned: stas)

Details

Attachments

(1 file)

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: nobody → stas
Attachment #794005 - Flags: review?(gandalf)
Attachment #794005 - Flags: review?(gandalf) → review+
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.

Attachment

General

Created:
Updated:
Size: