Skip to content

Comments

feat: add benchmark for before#254

Merged
yceffort-naver merged 1 commit intoNaverPayDev:mainfrom
umsungjun:feat/before-add-benchmark
May 6, 2025
Merged

feat: add benchmark for before#254
yceffort-naver merged 1 commit intoNaverPayDev:mainfrom
umsungjun:feat/before-add-benchmark

Conversation

@umsungjun
Copy link
Contributor

Added before.bench.ts for performance comparison with lodash

스크린샷 2025-05-06 오후 4 42 47

Added before.bench.ts for performance comparison with lodash
@umsungjun umsungjun requested a review from a team as a code owner May 6, 2025 07:43
@github-actions
Copy link
Contributor

github-actions bot commented May 6, 2025

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

@github-actions
Copy link
Contributor

github-actions bot commented May 6, 2025

Benchmark Results

Method Test Performance Comparison hidash ops/sec [email protected] ops/sec
before ⚠️ src/before.bench.ts > before performance lodash is 1.63x faster 340508.27 555888.68 🏆

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/before.bench.ts",
      "groups": [
        {
          "fullName": "src/before.bench.ts > before performance",
          "benchmarks": [
            {
              "id": "540122721_0_0",
              "name": "hidash",
              "rank": 2,
              "rme": 0.11559517495032219,
              "samples": [],
              "totalTime": 500.0025349999896,
              "min": 0.002633999999943626,
              "max": 0.10707000000002154,
              "hz": 340508.2736230598,
              "period": 0.0029367862030483076,
              "mean": 0.0029367862030483076,
              "variance": 5.107540369084093e-7,
              "sd": 0.0007146705792939915,
              "sem": 0.0000017320322190462323,
              "df": 170254,
              "critical": 1.96,
              "moe": 0.0000033947831493306154,
              "p75": 0.00286599999998316,
              "p99": 0.005510000000015225,
              "p995": 0.005720999999994092,
              "p999": 0.012793999999985317,
              "sampleCount": 170255,
              "median": 0.002865000000042528
            },
            {
              "id": "540122721_0_1",
              "name": "lodash",
              "rank": 1,
              "rme": 0.0973813221012728,
              "samples": [],
              "totalTime": 500.0011870000433,
              "min": 0.0016119999997954437,
              "max": 0.029015000000072177,
              "hz": 555888.6803202248,
              "period": 0.0017989213225639723,
              "mean": 0.0017989213225639723,
              "variance": 2.2203548884486561e-7,
              "sd": 0.0004712064185098348,
              "sem": 8.937823303441319e-7,
              "df": 277944,
              "critical": 1.96,
              "moe": 0.0000017518133674744985,
              "p75": 0.001774000000068554,
              "p99": 0.00272499999982756,
              "p995": 0.003365999999914493,
              "p999": 0.009798000000046159,
              "sampleCount": 277945,
              "median": 0.001772999999957392
            }
          ]
        }
      ]
    }
  ]
}

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.

=)

@yceffort-naver yceffort-naver merged commit bc34547 into NaverPayDev:main May 6, 2025
7 of 8 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