jnv / one-sdk-benchmark

Comparing memory usage of OneSDK between v1 and v2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OneSDK Memory usage in v1 vs. v2

Memory usage measurement of @superfaceai/one-sdk. This is intended to roughly measure base heap usage of OneSDK between versions using Clinic.js Doctor.

Usage

Run npm start or manually execute the scripts:

  1. ./setup.sh to install individual dependencies and install clinic package (via npx)

  2. ./single-profile.sh to run the benchmark; this will run single-profile.js in v1 and v2 directory

    • each script is executed twice: first time to warm up a cache, second time with clinic doctor for profiling and a heap size limited to 128 MB
    • after each profiling an interactive profile snapshot is generated and opened by the default browser

Contents

  • single-profile.js measures OneSDK with single profile and map fetched from the registry, currently weather/current-city with wttr-in provider is used

About

Comparing memory usage of OneSDK between v1 and v2


Languages

Language:JavaScript 68.7%Language:Shell 31.3%