{"id":25161114,"url":"https://github.com/drew-chase/javascript-compiler-test","last_synced_at":"2026-05-05T14:32:42.981Z","repository":{"id":276359229,"uuid":"929071299","full_name":"Drew-Chase/javascript-compiler-test","owner":"Drew-Chase","description":"This project demonstrates the differences between Deno and Bun runtimes, particularly focusing on executable size and performance characteristics.","archived":false,"fork":false,"pushed_at":"2025-02-07T19:09:45.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-03T01:11:15.763Z","etag":null,"topics":["bun","compiler","deno","js","nodejs"],"latest_commit_sha":null,"homepage":"","language":"Batchfile","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/Drew-Chase.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":"2025-02-07T18:51:59.000Z","updated_at":"2025-02-07T19:09:48.000Z","dependencies_parsed_at":"2025-02-07T19:22:09.605Z","dependency_job_id":"ac795de2-c2eb-447c-800a-d106fe6bb6cf","html_url":"https://github.com/Drew-Chase/javascript-compiler-test","commit_stats":null,"previous_names":["drew-chase/javascript-compiler-test"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Drew-Chase%2Fjavascript-compiler-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Drew-Chase%2Fjavascript-compiler-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Drew-Chase%2Fjavascript-compiler-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Drew-Chase%2Fjavascript-compiler-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Drew-Chase","download_url":"https://codeload.github.com/Drew-Chase/javascript-compiler-test/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247006667,"owners_count":20868033,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["bun","compiler","deno","js","nodejs"],"created_at":"2025-02-09T02:18:02.197Z","updated_at":"2026-05-05T14:32:42.941Z","avatar_url":"https://github.com/Drew-Chase.png","language":"Batchfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JavaScript Runtime Comparison: Deno vs Bun\n\nThis project demonstrates the differences between Deno and Bun runtimes, particularly focusing on executable size and performance characteristics.\n\n## Overview\n\nThe project includes simple build scripts to compile JavaScript code using both Deno and Bun runtimes, allowing for direct comparison of their outputs.\n\n## Batch Files\n\nThe project includes three batch files for compilation:\n\n### compile.bat\nMain compilation script that runs both Deno and Bun compilation processes:\n```batch\n.\\compile.bat\n```\nThis script simply calls both `compile_deno.bat` and `compile_bun.bat` in sequence.\n\n### compile_deno.bat\nHandles Deno-specific compilation:\n- Checks if Deno is installed\n- Creates `dist` directory if it doesn't exist\n- Compiles `test.js` using Deno\n- Moves the compiled executable to `dist/test_deno.exe`\n\nUsage:\n```batch\n.\\compile_deno.bat\n```\n\n### compile_bun.bat\nHandles Bun-specific compilation:\n- Checks if Bun is installed\n- Creates `dist` directory if it doesn't exist\n- Compiles `test.js` using Bun's builder\n- Outputs the compiled executable to `dist/test_bun`\n\nUsage:\n```batch\n.\\compile_bun.bat\n```\n\n### Error Handling\nEach compilation script includes error checking:\n- Verifies if the required runtime (Deno or Bun) is installed\n- Provides installation instructions if the runtime is missing\n- Creates the `dist` directory if it doesn't exist\n- Returns error code 1 if the runtime is not found\n\n### Output\nAll compiled executables are placed in the `dist` directory:\n- `dist/test_deno.exe` - Deno compiled executable\n- `dist/test_bun` - Bun compiled executable\n\n## Runtime Comparison\n\n### Deno\n**Pros:**\n- Smaller bundled executable size\n- Built-in TypeScript support\n- Enhanced security with explicit permissions\n- Better compatibility with existing Node.js code\n- Built-in testing and documentation tools\n\n**Cons:**\n- Generally slower execution compared to Bun\n- Stricter security model may require additional configuration\n\n### Bun\n**Pros:**\n- Significantly faster execution time\n- Built-in bundler and package manager\n- Drop-in replacement for Node.js\n- Native support for various package managers\n- Excellent performance for both development and production\n\n**Cons:**\n- Larger executable size\n- Newer platform with potentially less stability\n- Smaller ecosystem compared to Deno\n\n## Installation\n\n### Installing Deno\n\n**Windows (PowerShell):**\n```powershell\nirm https://deno.land/install.ps1 | iex\n```\n\n**macOS/Linux:**\n```shell script\ncurl -fsSL https://deno.land/install.sh | sh\n```\n\nFor more installation options, visit: [Deno Installation Guide](https://deno.land/#installation)\n\n### Installing Bun\n\n**Windows (via Windows Subsystem for Linux):**\n1. Install WSL if not already installed\n2. Run within WSL:\n```shell script\ncurl -fsSL https://bun.sh/install | bash\n```\n\n**macOS/Linux:**\n```shell script\ncurl -fsSL https://bun.sh/install | bash\n```\n\nFor more installation options, visit: [Bun Installation Guide](https://bun.sh/docs/installation)\n\n## Project Structure\n```\n├── compile.bat         # Main compilation script\n├── compile_deno.bat   # Deno-specific compilation\n├── compile_bun.bat    # Bun-specific compilation\n├── test.js           # Sample JavaScript code\n└── dist/             # Output directory for compiled executables\n```\n\n## Usage\n\nTo compile executables for both runtimes:\n```shell script\n.\\compile.bat\n```\n\nThis will create two executables in the `dist` directory:\n- `test_deno.exe` - Deno compiled executable\n- `test_bun` - Bun compiled executable\n\n## Notes\n\n- Deno's executables are typically smaller due to its more focused runtime\n- Bun's executables, while larger, offer superior execution performance\n- Choose based on your specific needs: size constraints vs performance requirements\n\n## Links\n- [Deno Official Website](https://deno.land)\n- [Bun Official Website](https://bun.sh)\n\n## License\n\nThis project is open source and available under the MIT License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrew-chase%2Fjavascript-compiler-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrew-chase%2Fjavascript-compiler-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrew-chase%2Fjavascript-compiler-test/lists"}