Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: github/go-spdx
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.3.6
Choose a base ref
...
head repository: github/go-spdx
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.4.0
Choose a head ref
  • 16 commits
  • 13 files changed
  • 4 contributors

Commits on Jan 16, 2026

  1. Configuration menu
    Copy the full SHA
    6c509e4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    234f721 View commit details
    Browse the repository at this point in the history

Commits on Jan 26, 2026

  1. benchmark tests for validating MIT license

    Two benchmarks were added:
    
    1) `spdxexp.ValidateLicenses([]string{"MIT”})`
    2) `”MIT” == “MIT”`
    
    NOTE: The array `[]string{"MIT”})` is created outside the benchmark loop to avoid it contributing to the benchmark time.
    elrayle committed Jan 26, 2026
    Configuration menu
    Copy the full SHA
    c8ef242 View commit details
    Browse the repository at this point in the history
  2. add summary table for quick evaluation of both methods

    The benchmark and summary will allow us to quantify changes to the algorithm  to help us work to a more efficient and scalable evaluation process.
    elrayle committed Jan 26, 2026
    Configuration menu
    Copy the full SHA
    38dff46 View commit details
    Browse the repository at this point in the history
  3. fix linter errors

    elrayle committed Jan 26, 2026
    Configuration menu
    Copy the full SHA
    0cb8f2f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b343565 View commit details
    Browse the repository at this point in the history

Commits on Jan 31, 2026

  1. Add updated license files

    elrayle authored and github-actions[bot] committed Jan 31, 2026
    Configuration menu
    Copy the full SHA
    6446b5e View commit details
    Browse the repository at this point in the history

Commits on Feb 19, 2026

  1. add benchmarks specific to methods

    Allows for before and after comparisons for Satisfies and ValidateLicenses methods.
    
    BEFORE
    
    ```
    +----------------------------+---------------+-------------------+
    | Benchmark ValidateLicenses | ns/op average | Scale (5ns/op=1x) |
    +----------------------------+---------------+-------------------+
    | MIT                        | ~4577.2 ns/op | ~915x             |
    | mit                        | ~4772.5 ns/op | ~954x             |
    | Apache-2.0                 | ~3771.4 ns/op | ~754x             |
    | Zed                        | ~5625.4 ns/op | ~1,125x           |
    | MIT AND Apache-2.0         | ~8173.8 ns/op | ~1,635x           |
    | MIT AND Apache-2.0 OR Zed  | ~13,477 ns/op | ~2,695x           |
    | GPL-2.0-or-later           | ~4608.5 ns/op | ~922x             |
    | GPL-2.0+                   | ~8780.0 ns/op | ~1,756x           |
    +----------------------------+---------------+-------------------+
    
    +---------------------------+------------------+----------------------+
    | Benchmark Satisfies       | ns/op average    | Scale (1500ns/op=1x) |
    +---------------------------+------------------+----------------------+
    | MIT                       | ~4,213,130 ns/op | ~2,809x              |
    | mit                       | ~4,263,859 ns/op | ~2,843x              |
    | Apache-2.0                | ~2,598,757 ns/op | ~1,733x              |
    | Zed                       | ~5,607,040 ns/op | ~3,738x              |
    | MIT AND Apache-2.0        | ~4,481,596 ns/op | ~2,988x              |
    | MIT AND Apache-2.0 OR Zed | ~4,482,058 ns/op | ~2,988x              |
    | GPL-2.0-or-later          | ~9,803,113 ns/op | ~6,535x              |
    | GPL-2.0+                  | ~9,703,581 ns/op | ~6,469x              |
    +---------------------------+------------------+----------------------+
    ```
    elrayle committed Feb 19, 2026
    Configuration menu
    Copy the full SHA
    586dda9 View commit details
    Browse the repository at this point in the history
  2. use MIT shortcut for Satisfies and ValidateLicenses

    AFTER
    
    ```
    +----------------------------+---------------+-------------------+
    | Benchmark ValidateLicenses | ns/op average | Scale (5ns/op=1x) |
    +----------------------------+---------------+-------------------+
    | MIT                        | ~5.3 ns/op    | ~1.1x             |
    | mit                        | ~8.2 ns/op    | ~1.6x             |
    | Apache-2.0                 | ~1536.8 ns/op | ~307x             |
    | Zed                        | ~3192.3 ns/op | ~638x             |
    | MIT AND Apache-2.0         | ~7676.7 ns/op | ~1,535x           |
    | MIT AND Apache-2.0 OR Zed  | ~12,745 ns/op | ~2,549x           |
    | GPL-2.0-or-later           | ~2267.0 ns/op | ~453x             |
    | GPL-2.0+                   | ~12,118 ns/op | ~2,424x           |
    +----------------------------+---------------+-------------------+
    
    +---------------------------+------------------+----------------------+
    | Benchmark Satisfies       | ns/op average    | Scale (1500ns/op=1x) |
    +---------------------------+------------------+----------------------+
    | MIT                       | ~1452.5 ns/op    | 1x                   |
    | mit                       | ~1495.4 ns/op    | 1x                   |
    | Apache-2.0                | ~2430.4 ns/op    | ~1.6x                |
    | Zed                       | ~5742.4 ns/op    | ~3.8x                |
    | MIT AND Apache-2.0        | ~4,079,706 ns/op | ~2,720x              |
    | MIT AND Apache-2.0 OR Zed | ~4,217,486 ns/op | ~2,812x              |
    | GPL-2.0-or-later          | ~9,011,721 ns/op | ~6,008x              |
    | GPL-2.0+                  | ~9,509,477 ns/op | ~6,340x              |
    +---------------------------+------------------+----------------------+
    ```
    elrayle committed Feb 19, 2026
    Configuration menu
    Copy the full SHA
    28d465d View commit details
    Browse the repository at this point in the history
  3. Merge pull request #132 from github/elr/benchmark

    benchmark tests for validating MIT license
    elrayle authored Feb 19, 2026
    Configuration menu
    Copy the full SHA
    148e586 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2289847 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #133 from github/ci/pr-129

    Replicate work in PR #129 - fix panic in parseWith
    elrayle authored Feb 19, 2026
    Configuration menu
    Copy the full SHA
    2c4a570 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b48955b View commit details
    Browse the repository at this point in the history
  7. Merge pull request #130 from github/auto-update-licenses

    Update SPDX license files (2026-02-19 04:43 UTC)
    elrayle authored Feb 19, 2026
    Configuration menu
    Copy the full SHA
    ab7fd61 View commit details
    Browse the repository at this point in the history

Commits on Feb 20, 2026

  1. update version to v2.4.0

    elrayle committed Feb 20, 2026
    Configuration menu
    Copy the full SHA
    f4547aa View commit details
    Browse the repository at this point in the history
  2. Merge pull request #134 from github/v2.4.0-prep

    update version to v2.4.0
    elrayle authored Feb 20, 2026
    Configuration menu
    Copy the full SHA
    c1dc1cd View commit details
    Browse the repository at this point in the history
Loading