Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/benchmark-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
paths:
- "benchmarks/**"
- ".github/workflows/benchmark-push.yml"
- ".github/workflows/**"

jobs:
find-changed-paths:
Expand Down
29 changes: 24 additions & 5 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: Run benchmarks

on:
workflow_call:
inputs:
benchmarks:
description: "paths to benchmarks, comma seperated"
description: "paths to benchmarks, JSON array format"
type: string
required: true

Expand All @@ -28,6 +30,7 @@ jobs:

steps:
- uses: actions/checkout@v3

- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master
Expand All @@ -41,14 +44,30 @@ jobs:
~/.cargo/registry/cache/
~/.cargo/git/db/
~/home/linuxbrew/
target/
**/target/release/*
**/examples/*
**/built/local/*
**/Cargo.toml
key: ${{ runner.os }}-${{ hashFiles('**/Cargo.lock', 'run.sh') }}

- run: mkdir -p ${{ env.ARTIFACTS_FOLDER }}
- name: Make executable
- uses: kaleidawave/release-downloader@improvements
with: { 'items': 'sharkdp/hyperfine@v1.19.0' }
env:
GH_TOKEN: ${{ github.token }}

# - run: mkdir -p ${{ env.ARTIFACTS_FOLDER }}

- name: Make executables executable
run: |
# run.sh might not be executable
# run.sh and setup.sh might not be executable
chmod +x run.sh
chmod +x setup.sh

- name: Run setup
run: ./setup.sh
env:
# May use GH to download assets
GH_TOKEN: ${{ github.token }}

- name: Run benchmark
run: ./run.sh
Expand Down
1 change: 1 addition & 0 deletions benchmarks/json-parsers/github-api.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"id":597169169,"node_id":"R_kgDOI5gUEQ","name":"ezno","full_name":"kaleidawave/ezno","private":false,"owner":{"login":"kaleidawave","id":26967284,"node_id":"MDQ6VXNlcjI2OTY3Mjg0","avatar_url":"https://avatars.githubusercontent.com/u/26967284?v=4","gravatar_id":"","url":"https://api.github.com/users/kaleidawave","html_url":"https://github.com/kaleidawave","followers_url":"https://api.github.com/users/kaleidawave/followers","following_url":"https://api.github.com/users/kaleidawave/following{/other_user}","gists_url":"https://api.github.com/users/kaleidawave/gists{/gist_id}","starred_url":"https://api.github.com/users/kaleidawave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaleidawave/subscriptions","organizations_url":"https://api.github.com/users/kaleidawave/orgs","repos_url":"https://api.github.com/users/kaleidawave/repos","events_url":"https://api.github.com/users/kaleidawave/events{/privacy}","received_events_url":"https://api.github.com/users/kaleidawave/received_events","type":"User","user_view_type":"public","site_admin":false},"html_url":"https://github.com/kaleidawave/ezno","description":"A fast and correct TypeScript type checker and compiler with additional experiments","fork":false,"url":"https://api.github.com/repos/kaleidawave/ezno","forks_url":"https://api.github.com/repos/kaleidawave/ezno/forks","keys_url":"https://api.github.com/repos/kaleidawave/ezno/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kaleidawave/ezno/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kaleidawave/ezno/teams","hooks_url":"https://api.github.com/repos/kaleidawave/ezno/hooks","issue_events_url":"https://api.github.com/repos/kaleidawave/ezno/issues/events{/number}","events_url":"https://api.github.com/repos/kaleidawave/ezno/events","assignees_url":"https://api.github.com/repos/kaleidawave/ezno/assignees{/user}","branches_url":"https://api.github.com/repos/kaleidawave/ezno/branches{/branch}","tags_url":"https://api.github.com/repos/kaleidawave/ezno/tags","blobs_url":"https://api.github.com/repos/kaleidawave/ezno/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kaleidawave/ezno/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kaleidawave/ezno/git/refs{/sha}","trees_url":"https://api.github.com/repos/kaleidawave/ezno/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kaleidawave/ezno/statuses/{sha}","languages_url":"https://api.github.com/repos/kaleidawave/ezno/languages","stargazers_url":"https://api.github.com/repos/kaleidawave/ezno/stargazers","contributors_url":"https://api.github.com/repos/kaleidawave/ezno/contributors","subscribers_url":"https://api.github.com/repos/kaleidawave/ezno/subscribers","subscription_url":"https://api.github.com/repos/kaleidawave/ezno/subscription","commits_url":"https://api.github.com/repos/kaleidawave/ezno/commits{/sha}","git_commits_url":"https://api.github.com/repos/kaleidawave/ezno/git/commits{/sha}","comments_url":"https://api.github.com/repos/kaleidawave/ezno/comments{/number}","issue_comment_url":"https://api.github.com/repos/kaleidawave/ezno/issues/comments{/number}","contents_url":"https://api.github.com/repos/kaleidawave/ezno/contents/{+path}","compare_url":"https://api.github.com/repos/kaleidawave/ezno/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kaleidawave/ezno/merges","archive_url":"https://api.github.com/repos/kaleidawave/ezno/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kaleidawave/ezno/downloads","issues_url":"https://api.github.com/repos/kaleidawave/ezno/issues{/number}","pulls_url":"https://api.github.com/repos/kaleidawave/ezno/pulls{/number}","milestones_url":"https://api.github.com/repos/kaleidawave/ezno/milestones{/number}","notifications_url":"https://api.github.com/repos/kaleidawave/ezno/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kaleidawave/ezno/labels{/name}","releases_url":"https://api.github.com/repos/kaleidawave/ezno/releases{/id}","deployments_url":"https://api.github.com/repos/kaleidawave/ezno/deployments","created_at":"2023-02-03T19:27:20Z","updated_at":"2025-12-22T18:46:23Z","pushed_at":"2025-11-27T20:37:50Z","git_url":"git://github.com/kaleidawave/ezno.git","ssh_url":"git@github.com:kaleidawave/ezno.git","clone_url":"https://github.com/kaleidawave/ezno.git","svn_url":"https://github.com/kaleidawave/ezno","homepage":"https://kaleidawave.github.io/posts/introducing-ezno/","size":3889,"stargazers_count":2722,"watchers_count":2722,"language":"Rust","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"has_discussions":true,"forks_count":46,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":46,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"allow_forking":true,"is_template":false,"web_commit_signoff_required":false,"topics":["compiler","javascript","typechecker","types","typescript"],"visibility":"public","forks":46,"open_issues":46,"watchers":2722,"default_branch":"main","permissions":{"admin":true,"maintain":true,"push":true,"triage":true,"pull":true},"temp_clone_token":"","allow_squash_merge":true,"allow_merge_commit":false,"allow_rebase_merge":false,"allow_auto_merge":false,"delete_branch_on_merge":false,"allow_update_branch":true,"use_squash_pr_title_as_default":false,"squash_merge_commit_message":"COMMIT_MESSAGES","squash_merge_commit_title":"COMMIT_OR_PR_TITLE","merge_commit_message":"BLANK","merge_commit_title":"PR_TITLE","security_and_analysis":{"secret_scanning":{"status":"disabled"},"secret_scanning_push_protection":{"status":"disabled"},"dependabot_security_updates":{"status":"disabled"},"secret_scanning_non_provider_patterns":{"status":"disabled"},"secret_scanning_validity_checks":{"status":"disabled"}},"network_count":46,"subscribers_count":20}
3 changes: 3 additions & 0 deletions benchmarks/json-parsers/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
echo "### simple-json-parser: parse github-api.json (SDE)" > $GITHUB_STEP_SUMMARY
echo "" > $GITHUB_STEP_SUMMARY
./depict count --format markdown --write-results-to $GITHUB_STEP_SUMMARY ./parse github-api.json
15 changes: 15 additions & 0 deletions benchmarks/json-parsers/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
gh repo clone kaleidawave/depict depict-tool
cd depict-tool
git checkout cli-improvements
cargo build
mv target/debug/depict ..
cd ..

./depict install

gh repo clone kaleidawave/simple-json-parser
cd simple-json-parser
git checkout improvements
cargo b --release --example parse
mv target/release/examples/parse ..
cd ..