{"id":15710572,"url":"https://github.com/ivanhuay/micron-process-env","last_synced_at":"2026-04-27T23:34:16.363Z","repository":{"id":75932947,"uuid":"213926741","full_name":"ivanhuay/micron-process-env","owner":"ivanhuay","description":"micron test to measeure process.env performance","archived":false,"fork":false,"pushed_at":"2019-10-09T14:06:10.000Z","size":69,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T01:01:43.950Z","etag":null,"topics":["benchmark","micron","node"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/ivanhuay.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}},"created_at":"2019-10-09T13:30:48.000Z","updated_at":"2019-10-09T14:08:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"d80e47f2-354a-45c5-8079-e5cb11ae1e61","html_url":"https://github.com/ivanhuay/micron-process-env","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ivanhuay/micron-process-env","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanhuay%2Fmicron-process-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanhuay%2Fmicron-process-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanhuay%2Fmicron-process-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanhuay%2Fmicron-process-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ivanhuay","download_url":"https://codeload.github.com/ivanhuay/micron-process-env/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanhuay%2Fmicron-process-env/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32360110,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"ssl_error","status_checked_at":"2026-04-27T20:07:00.910Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["benchmark","micron","node"],"created_at":"2024-10-03T21:08:41.135Z","updated_at":"2026-04-27T23:34:16.346Z","avatar_url":"https://github.com/ivanhuay.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Micron Benchmark For process.env performance\nThis is a benchmark to analize the performance between using only one `process.env` or multiple each time.\n\n## Motivation\nIn this benchmark we measure the performance variation using `process.env` in this two ways:\n\n```javascript\nfunction pwd(){\n    return process.env.PWD;\n}\n```\nvs\n```javascript\nconst PWD = process.env.PWD\nfunction pwd(){\n    return PWD;\n}\n```\n\n## Results\n\nAs expected using the env variable in a const is the best way to use process.env, this is because process.env make a SO call so if we use this always it'll consume some time.\n\n[view results HERE](https://ivanhuay.github.io/micron-process.env/)\n![Alt image](./img/test.png)\n\n## run the test\n\n```\ngit clone https://github.com/ivanhuay/micron-process-env.git\n\ncd micron-process-env\n\nnpm i\n\nnpm run test\n```\n\nafter running that the results should be on the docs folder.\n\n```\ngoogle-chrome docs/index.html \n\nopen docs/index.html\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivanhuay%2Fmicron-process-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fivanhuay%2Fmicron-process-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivanhuay%2Fmicron-process-env/lists"}