Skip to content

feat: add benchmark for isFunction #253

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

Conversation

umsungjun
Copy link
Contributor

Added isFunction.bench.ts for performance comparison with lodash

스크린샷 2025-05-05 오후 8 56 32

Added isFunction.bench.ts for performance comparison with lodash
@umsungjun umsungjun requested a review from a team as a code owner May 5, 2025 11:57
Copy link
Contributor

github-actions bot commented May 5, 2025

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

Copy link
Contributor

github-actions bot commented May 5, 2025

Benchmark Results

Method Test Performance Comparison hidash ops/sec lodash@4.17.21 ops/sec
isFunction src/isFunction.bench.ts > isFunction performance hidash is 20.31x faster 3210.13 🏆 158.06

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/isFunction.bench.ts",
      "groups": [
        {
          "fullName": "src/isFunction.bench.ts > isFunction performance",
          "benchmarks": [
            {
              "id": "803682206_0_0",
              "name": "hidash",
              "rank": 1,
              "rme": 0.5141099764359598,
              "samples": [],
              "totalTime": 500.29098699999844,
              "min": 0.28922000000000025,
              "max": 0.6524699999999939,
              "hz": 3210.13178676354,
              "period": 0.31151369053549094,
              "mean": 0.31151369053549094,
              "variance": 0.001072259091570955,
              "sd": 0.03274536748260668,
              "sem": 0.0008171035515340823,
              "df": 1605,
              "critical": 1.96,
              "moe": 0.0016015229610068012,
              "p75": 0.3116330000000289,
              "p99": 0.470579999999984,
              "p995": 0.6287449999999808,
              "p999": 0.6507070000000112,
              "sampleCount": 1606,
              "median": 0.30442900000002737
            },
            {
              "id": "803682206_0_1",
              "name": "lodash",
              "rank": 2,
              "rme": 0.3930387439110756,
              "samples": [],
              "totalTime": 506.14303600000073,
              "min": 6.247569000000112,
              "max": 7.105664000000047,
              "hz": 158.05808696338536,
              "period": 6.326787950000009,
              "mean": 6.326787950000009,
              "variance": 0.012485412837540372,
              "sd": 0.11173814405806269,
              "sem": 0.012492704289674618,
              "df": 79,
              "critical": 1.9905,
              "moe": 0.024866727888597326,
              "p75": 6.330175000000054,
              "p99": 7.105664000000047,
              "p995": 7.105664000000047,
              "p999": 7.105664000000047,
              "sampleCount": 80,
              "median": 6.295628999999963
            }
          ]
        }
      ]
    }
  ]
}

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.

Oops, I missed the test code. Thanks for adding it! 😊

@yceffort-naver yceffort-naver merged commit 0e9675f into NaverPayDev:main May 6, 2025
6 of 7 checks passed
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