Memory usage measurement of @superfaceai/one-sdk. This is intended to roughly measure base heap usage of OneSDK between versions using Clinic.js Doctor.
Run npm start
or manually execute the scripts:
-
./setup.sh
to install individual dependencies and installclinic
package (vianpx
) -
./single-profile.sh
to run the benchmark; this will runsingle-profile.js
inv1
andv2
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
- each script is executed twice: first time to warm up a cache, second time with
single-profile.js
measures OneSDK with single profile and map fetched from the registry, currently weather/current-city withwttr-in
provider is used