Skip to content

feat: add benchmark for first #262

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 10, 2025

Conversation

umsungjun
Copy link
Contributor

Added first.bench.ts for performance comparison with lodash

스크린샷 2025-05-09 오후 9 55 27

Added first.bench.ts for performance comparison with lodash
@umsungjun umsungjun requested a review from a team as a code owner May 9, 2025 12:56
Copy link
Contributor

github-actions bot commented May 9, 2025

✅ All utility modules are properly registered in index.ts and package.json exports!

Copy link
Contributor

github-actions bot commented May 9, 2025

Benchmark Results

Method Test Performance Comparison hidash ops/sec lodash@4.17.21 ops/sec
first src/first.bench.ts > first performance hidash is 8.90x faster 527.73 🏆 59.26

Note: Higher operations per second (ops/sec) numbers are better. Each test compares hidash vs lodash implementation.

⚠️ indicates where hidash is slower than lodash.

🏆 indicates the faster implementation.

View Full Benchmark Data
{
  "files": [
    {
      "filepath": "/home/runner/work/hidash/hidash/src/first.bench.ts",
      "groups": [
        {
          "fullName": "src/first.bench.ts > first performance",
          "benchmarks": [
            {
              "id": "-809066490_0_0",
              "name": "hidash",
              "rank": 1,
              "rme": 0.24282142942248602,
              "samples": [],
              "totalTime": 500.2524309999997,
              "min": 1.7950480000000084,
              "max": 2.0947499999999764,
              "hz": 527.7335673757079,
              "period": 1.8948955719696958,
              "mean": 1.8948955719696958,
              "variance": 0.0014549108032953881,
              "sd": 0.038143293031611576,
              "sem": 0.0023475574050613305,
              "df": 263,
              "critical": 1.96,
              "moe": 0.004601212513920208,
              "p75": 1.900115000000028,
              "p99": 2.0809050000000298,
              "p995": 2.0825980000000754,
              "p999": 2.0947499999999764,
              "sampleCount": 264,
              "median": 1.8893005000000471
            },
            {
              "id": "-809066490_0_1",
              "name": "lodash",
              "rank": 2,
              "rme": 0.611193320353591,
              "samples": [],
              "totalTime": 506.2154939999997,
              "min": 16.64991299999997,
              "max": 18.115943000000016,
              "hz": 59.26329864569498,
              "period": 16.87384979999999,
              "mean": 16.87384979999999,
              "variance": 0.07629923550824023,
              "sd": 0.27622316251219814,
              "sem": 0.05043121900444876,
              "df": 29,
              "critical": 2.045,
              "moe": 0.10313184286409771,
              "p75": 16.94566700000007,
              "p99": 18.115943000000016,
              "p995": 18.115943000000016,
              "p999": 18.115943000000016,
              "sampleCount": 30,
              "median": 16.781600000000026
            }
          ]
        }
      ]
    }
  ]
}

Last updated by GitHub Actions

Copy link
Contributor

@yceffort-naver yceffort-naver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much for your continued interest in hidash! I’ll keep doing my best to help it grow into an awesome project. 🚀✨

@yceffort-naver yceffort-naver merged commit 196a145 into NaverPayDev:main May 10, 2025
6 of 7 checks passed
@umsungjun
Copy link
Contributor Author

Thanks so much for your support!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants