{"id":29826873,"url":"https://github.com/switcherapi/client-js-benchmark","last_synced_at":"2026-04-15T13:33:19.945Z","repository":{"id":304272826,"uuid":"1014508835","full_name":"switcherapi/client-js-benchmark","owner":"switcherapi","description":"Evaluate performance of 4 different Feature Flag SDKs for JS","archived":false,"fork":false,"pushed_at":"2025-10-08T02:22:12.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-08T04:16:18.301Z","etag":null,"topics":["deno","feature-flags","js","switcherapi"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/switcherapi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-05T21:36:59.000Z","updated_at":"2025-10-08T02:22:15.000Z","dependencies_parsed_at":"2025-07-12T04:16:17.834Z","dependency_job_id":"096fe438-516b-4b10-862a-5f493eb0ccfa","html_url":"https://github.com/switcherapi/client-js-benchmark","commit_stats":null,"previous_names":["switcherapi/client-js-benchmark"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/switcherapi/client-js-benchmark","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/switcherapi%2Fclient-js-benchmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/switcherapi%2Fclient-js-benchmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/switcherapi%2Fclient-js-benchmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/switcherapi%2Fclient-js-benchmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/switcherapi","download_url":"https://codeload.github.com/switcherapi/client-js-benchmark/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/switcherapi%2Fclient-js-benchmark/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31842922,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T13:28:40.153Z","status":"ssl_error","status_checked_at":"2026-04-15T13:28:29.396Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deno","feature-flags","js","switcherapi"],"created_at":"2025-07-29T05:35:33.271Z","updated_at":"2026-04-15T13:33:19.933Z","avatar_url":"https://github.com/switcherapi.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# About\n\nThis benchmark compares major Feature Flag SDKs against Switcher Client SDK for JS \u0026 Deno.\u003cbr\u003e \nTests included in this benchmark are focused only on avarage performance and do not reflect nor measure any other specific SDK capabilities.\u003cbr\u003e \nThe goal is to gain more knowledge and define a baseline to improve Switcher Client SDK overall performance in the future releases.\n\n## Run\n\nRun the benchmark using Deno task runner. Make sure you have Deno installed and configured in your environment.\n\n```\ndeno task bench\n```\n\n## Tests explained\n\nTests results are subject to change based on the environment and configuration.\n\n### Async\n\nUses Promise-based evaluation with in-memory cache by preloading or using async calls to remote API.\n\n### Local\n\nUses synchronous evaluation with in-memory static configuration loaded from a file or remote API.\n\n### Results\n\nResults are based on the average time per iteration and the number of iterations per second.\n\n| Benchmark                             | Time/Iter (avg) | Iter/s        | (min … max)           | p75      | p99      | p995     |\n| ------------------------------------- | --------------: | ------------: | --------------------: | -------: | -------: | -------: |\n| Static boolean (baseline)             |          2.3 ns |   441,300,000 | (  2.2 ns …  24.4 ns) |   2.3 ns |   2.9 ns |   3.5 ns |\n| Client: switcher-client-js (local)    |         10.1 ns |    98,740,000 | (  9.0 ns …  27.4 ns) |  10.2 ns |  15.9 ns |  17.4 ns |\n| Client: switcher-client-deno (local)  |         10.2 ns |    97,590,000 | (  9.4 ns …  28.0 ns) |  10.2 ns |  14.8 ns |  15.8 ns |\n| Client: unleash (local)               |         61.5 ns |    16,250,000 | ( 52.6 ns … 111.0 ns) |  62.8 ns |  88.9 ns |  91.4 ns |\n| Client: switcher-client-deno (async)  |        127.7 ns |     7,833,000 | (116.0 ns … 172.9 ns) | 131.1 ns | 168.2 ns | 168.9 ns |\n| Client: switcher-client-js (async)    |        129.8 ns |     7,707,000 | (116.9 ns … 213.4 ns) | 131.7 ns | 190.0 ns | 208.5 ns |\n| Client: harness (async)               |        319.9 ns |     3,126,000 | (288.1 ns … 389.6 ns) | 330.7 ns | 368.0 ns | 389.6 ns |\n| Client: optimizely (local)            |          1.4 µs |       690,900 | (  1.4 µs …   2.1 µs) |   1.5 µs |   2.1 µs |   2.1 µs |\n| Client: amplitude-experiment (local)  |          1.5 µs |       668,200 | (  1.3 µs …   1.9 µs) |   1.5 µs |   1.9 µs |   1.9 µs |\n| Client: amplitude-experiment (async)  |        113.6 ms |           8.8 | ( 39.9 ms … 560.5 ms) |  69.8 ms | 560.5 ms | 560.5 ms |","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswitcherapi%2Fclient-js-benchmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswitcherapi%2Fclient-js-benchmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswitcherapi%2Fclient-js-benchmark/lists"}