Профилирование кода JavaScript
4 USDЗадание в университете по тестированию -
https://github.com/rugk/offline-qr-code - код проекта
In this exercise we will focus on profiling. Generally, profiling is a form of dynamic analysis (i.e., program runtime) that measures selected program properties, usually for the purpose of improving them. The most common types of profiling are:
time,
memory,
network,
energy, battery, ...
Choose one type of profile and run "profiler" when performing a certain scenario. This scenario should ideally be automated, so it should be done several times with the same result, approximate execution time, etc. The best one can serve unit tests. However, it is also possible to manually perform some activity in the UI.
In the profiling results you can try to find a "bottleneck", a part of the code that causes the biggest problems - consumes a lot of time, memory, energy, and the like. Focus on the selected part of the code and try to modify it so that it changes to a better one - reduce execution time. Measure and mark the values of the metric before and after this change. Be careful that the measurement is accurate - e.g. the method that is carried out by a couple of nanoseconds is to be done a series of times.
Finding "bottleneck": 2 points
Measuring the metric value before and after changing the code: 2 points
if the code change improves the metric: max. 3 points
Current freelance projects in the category Javascript and Typescript
Full-stack development — Amazon PPC Dashboard (Stage 1)Need a full-stack developer with experience working with Amazon API to implement Stage 1 of the internal PPC dashboard. The project is real, the data is live, everything is ready to start. Frontend prototype (5 pages, React + TypeScript): WHAT IS ALREADY READY — Frontend… Javascript and Typescript, Web Programming ∙ 10 hours 46 minutes back ∙ 17 proposals |
Development of a photo book and photo frame constructor websiteProject Goal A modern website needs to be developed for ordering photo books, photo frames, and other personalized photo products. The main task of the project is to provide the client with the ability to independently create a ready-made layout of the product directly on the… Javascript and Typescript, Web Programming ∙ 2 days 2 hours back ∙ 90 proposals |
Full-stack developmentNeed a full-stack developer who is free for work and not looking to get rich immediately from this project. This is my test site: readyhome.ge the prototype of which I want to create (not referring to design). In the footer, there is Russian language, fill out the questionnaire… Javascript and Typescript, Web Programming ∙ 2 days 15 hours back ∙ 79 proposals |
Team for a custom marketplace of funeral services.We are looking for a team to launch and develop a custom national marketplace for funeral services. Right away: we are not looking for solo freelancers, juniors, or "website builders." We need a strong product team at the middle+/senior level with real cases in… Javascript and Typescript, Web Programming ∙ 2 days 21 hours back ∙ 25 proposals |
Improvement of the existing Next.js/Supabase project: offers, CRM, analytics, AI chatThere is an active project WatchGenius — a luxury watch analytics platform with a catalog of models, price analytics, external offers, application forms, and an AI chat. The project has already been partially developed. We need not a website from scratch, but an experienced… Javascript and Typescript, Web Programming ∙ 4 days 22 hours back ∙ 55 proposals |