{"id":16788556,"url":"https://github.com/mna/bench_go_scripting","last_synced_at":"2026-02-22T23:05:52.134Z","repository":{"id":252307434,"uuid":"840044832","full_name":"mna/bench_go_scripting","owner":"mna","description":"Small benchmarks comparing the Tengo and Risor scripting languages","archived":false,"fork":false,"pushed_at":"2024-09-05T22:54:33.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-23T01:29:06.228Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/mna.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":"2024-08-08T21:23:28.000Z","updated_at":"2024-09-05T22:54:36.000Z","dependencies_parsed_at":"2024-11-23T01:29:08.440Z","dependency_job_id":"d4ee50f7-f258-4054-a89c-bc2ed6be0db9","html_url":"https://github.com/mna/bench_go_scripting","commit_stats":null,"previous_names":["mna/bench_go_scripting"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mna%2Fbench_go_scripting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mna%2Fbench_go_scripting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mna%2Fbench_go_scripting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mna%2Fbench_go_scripting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mna","download_url":"https://codeload.github.com/mna/bench_go_scripting/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235262418,"owners_count":18961945,"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":[],"created_at":"2024-10-13T08:18:14.566Z","updated_at":"2025-10-04T14:30:39.543Z","avatar_url":"https://github.com/mna.png","language":"Shell","readme":"# Benchmarks for Go scripting languages\n\nI wanted to compare [risor](https://github.com/risor-io/risor) with [tengo](https://github.com/d5/tengo), two interesting Go-based scripting languages implemented with a stack-based, bytecode interpreter VM. They both seem fast enough for many scripting uses, the goal is not to discourage use of one or the other - execution speed is but one reason to use a language, and remember that those benchmarks cover tiny specific uses of the language.\n\nLater on I added [goja](https://github.com/dop251/goja), a Javascript interpreter in Go.\n\nTo run the benchmarks on your machine, simply clone the repository and run `./run.bash`. You may need to tweak the `count_zeds` benchmark as it relies on the dictionary file found in \"/usr/share/dict/words\" on my machine.\n\nResults on my old Lenovo T460 laptop (tengo @c461a7f, risor @b83ab51, August 2024):\n\n```\n$ ./run.bash\ncount_zeds\t\ttengo: 0m0.253s\t\trisor: 0m0.241s\nfib\t\t\ttengo: 0m3.037s\t\trisor: 0m4.889s\nfibt\t\t\ttengo: 0m0.004s\t\trisor: 0m0.015s\njson\t\t\ttengo: 0m0.008s\t\trisor: 0m0.017s\n```\n","funding_links":[],"categories":["Showcase"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmna%2Fbench_go_scripting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmna%2Fbench_go_scripting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmna%2Fbench_go_scripting/lists"}