Skip to content
Merged
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
7 changes: 2 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ jobs:
os:
- macos-latest
- ubuntu-latest
package:
- go
- rust
fail-fast: true
steps:
- uses: actions/checkout@v5
Expand All @@ -26,8 +23,8 @@ jobs:
name: sestrella
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
skipPush: ${{ github.ref_name != 'main' }}
- run: nix build .#${{ matrix.package }}
- run: nix run .#${{ matrix.package }} -- --version
- run: nix build .#
- run: nix run .# -- --version

template:
runs-on: ubuntu-latest
Expand Down
10 changes: 0 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,16 +131,6 @@ commit` without a commit message generates a commit message. If a commit message
is given, `auto-commit-msg` does not generate a commit message and instead uses
the one provided by the user.

## Benchmark

The following table compares the Go and Rust implementations; it was built using
[hyperfine](https://github.com/sharkdp/hyperfine).

| Command | Mean [s] | Min [s] | Max [s] | Relative |
|:---|---:|---:|---:|---:|
| `./auto-commit-msg` | 1.101 ± 0.205 | 0.776 | 1.309 | 1.00 |
| `./rust/target/release/acm` | 1.244 ± 0.106 | 1.127 | 1.416 | 1.13 ± 0.23 |

## License

[MIT](LICENSE)
Expand Down
2 changes: 0 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ type DiffConfig struct {
}

type Trace struct {
Language string `json:"language"`
Model string `json:"model"`
Version string `json:"version"`
ResponseTime float64 `json:"response_time"`
Expand Down Expand Up @@ -145,7 +144,6 @@ var rootCmd = &cobra.Command{
executionDuration := time.Since(executionTime)
trace, err := json.Marshal(TraceWrapper{
Trace: Trace{
Language: "go",
Model: model,
Version: strings.TrimSpace(cmd.Version),
ResponseTime: math.Round(responseDuration.Seconds()*100) / 100,
Expand Down
2 changes: 1 addition & 1 deletion devenv.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

git-hooks.hooks.auto-commit-msg = {
enable = true;
entry = lib.getExe (pkgs.callPackage ./rust/default.nix { });
entry = lib.getExe (pkgs.callPackage ./default.nix { });
stages = [ "prepare-commit-msg" ];
verbose = true;
};
Expand Down
1 change: 0 additions & 1 deletion devenv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@ inputs:
secretspec:
enable: true
provider: keyring
profile: development
15 changes: 2 additions & 13 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,9 @@
nix-filter.overlays.default
];
};
lib = pkgs.lib;
in
rec {
benchmark = pkgs.writeShellScriptBin "benchmark" ''
${lib.getExe pkgs.hyperfine} \
--runs 5 \
--prepare 'sleep 1' \
--export-markdown benchmark.md \
${lib.getExe go} \
${lib.getExe rust}
'';
default = go;
go = pkgs.callPackage ./default.nix { };
rust = pkgs.callPackage ./rust/default.nix { };
{
default = pkgs.callPackage ./default.nix { };
}
);

Expand Down
12 changes: 0 additions & 12 deletions rust/.envrc

This file was deleted.

13 changes: 0 additions & 13 deletions rust/.gitignore

This file was deleted.

Loading