Skip to content
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

Add build instructions for examples/ffi #785

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

dubloom
Copy link
Contributor

@dubloom dubloom commented Dec 6, 2024

What does this PR do?

Add a README with instructions to build and launch the ffi examples

Motivation

I had to ask the commands to build them.

Additional Notes

Anything else we should know when reviewing?

How to test the change?

Describe here in detail how the change can be validated.

@dubloom dubloom requested a review from a team as a code owner December 6, 2024 12:18
@dubloom dubloom requested a review from paullegranddc December 6, 2024 12:19
@pr-commenter
Copy link

pr-commenter bot commented Dec 6, 2024

Benchmarks

Comparison

Benchmark execution time: 2024-12-16 14:19:40

Comparing candidate commit 3fa9e66 in PR branch dubloom/ffi-examples-readme with baseline commit 98c0047 in branch main.

Found 2 performance improvements and 10 performance regressions! Performance is the same for 39 metrics, 2 unstable metrics.

scenario:concentrator/add_spans_to_concentrator

  • 🟥 execution_time [+2.244ms; +2.250ms] or [+33.065%; +33.156%]

scenario:credit_card/is_card_number/ 3782-8224-6310-005

  • 🟩 throughput [+431804.090op/s; +454866.341op/s] or [+4.135%; +4.356%]

scenario:normalization/normalize_name/normalize_name/Too-Long-.Too-Long-.Too-Long-.Too-Long-.Too-Long-.Too-Lo...

  • 🟥 execution_time [+114.254µs; +114.805µs] or [+59.057%; +59.342%]
  • 🟥 throughput [-1926503.680op/s; -1917795.423op/s] or [-37.270%; -37.101%]

scenario:normalization/normalize_name/normalize_name/bad-name

  • 🟥 execution_time [+9.840µs; +9.873µs] or [+53.968%; +54.146%]
  • 🟥 throughput [-19271338.117op/s; -19217332.909op/s] or [-35.138%; -35.039%]

scenario:normalization/normalize_name/normalize_name/good

  • 🟥 execution_time [+5.546µs; +5.567µs] or [+49.721%; +49.916%]
  • 🟥 throughput [-29858878.820op/s; -29767483.052op/s] or [-33.303%; -33.201%]

scenario:normalization/normalize_service/normalize_service/Test Conversion 0f Weird !@#$%^&**() Characters

  • 🟥 execution_time [+11.907µs; +12.086µs] or [+6.620%; +6.720%]
  • 🟥 throughput [-350328.811op/s; -345083.766op/s] or [-6.301%; -6.206%]

scenario:normalization/normalize_trace/test_trace

  • 🟥 execution_time [+20.574ns; +26.289ns] or [+7.206%; +9.208%]

scenario:sql/obfuscate_sql_string

  • 🟩 execution_time [-4.767µs; -4.695µs] or [-6.448%; -6.351%]

Candidate

Candidate benchmark details

Group 1

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz 3fa9e66 1734358106 dubloom/ffi-examples-readme
scenario metric min mean ± sd median ± mad p75 p95 p99 max peak_to_median_ratio skewness kurtosis cv sem runs sample_size
benching string interning on wordpress profile execution_time 138.636µs 139.464µs ± 0.279µs 139.433µs ± 0.149µs 139.589µs 139.890µs 140.348µs 141.058µs 1.17% 1.357 5.585 0.20% 0.020µs 1 200
scenario metric 95% CI mean Shapiro-Wilk pvalue Ljung-Box pvalue (lag=1) Dip test pvalue
benching string interning on wordpress profile execution_time [139.425µs; 139.502µs] or [-0.028%; +0.028%] None None None

Group 2

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz 3fa9e66 1734358106 dubloom/ffi-examples-readme
scenario metric min mean ± sd median ± mad p75 p95 p99 max peak_to_median_ratio skewness kurtosis cv sem runs sample_size
write only interface execution_time 1.393µs 3.244µs ± 1.449µs 3.091µs ± 0.028µs 3.113µs 3.149µs 14.317µs 15.292µs 394.75% 7.633 58.137 44.56% 0.102µs 1 200
scenario metric 95% CI mean Shapiro-Wilk pvalue Ljung-Box pvalue (lag=1) Dip test pvalue
write only interface execution_time [3.043µs; 3.445µs] or [-6.191%; +6.191%] None None None

Group 3

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz 3fa9e66 1734358106 dubloom/ffi-examples-readme
scenario metric min mean ± sd median ± mad p75 p95 p99 max peak_to_median_ratio skewness kurtosis cv sem runs sample_size
normalization/normalize_trace/test_trace execution_time 297.750ns 308.929ns ± 13.710ns 303.807ns ± 3.812ns 310.170ns 338.458ns 352.712ns 355.970ns 17.17% 1.895 2.704 4.43% 0.969ns 1 200
scenario metric 95% CI mean Shapiro-Wilk pvalue Ljung-Box pvalue (lag=1) Dip test pvalue
normalization/normalize_trace/test_trace execution_time [307.029ns; 310.829ns] or [-0.615%; +0.615%] None None None

Group 4

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz 3fa9e66 1734358106 dubloom/ffi-examples-readme
scenario metric min mean ± sd median ± mad p75 p95 p99 max peak_to_median_ratio skewness kurtosis cv sem runs sample_size
two way interface execution_time 18.159µs 24.707µs ± 14.208µs 18.993µs ± 0.127µs 19.344µs 47.372µs 49.820µs 160.590µs 745.50% 5.365 43.007 57.36% 1.005µs 1 200
scenario metric 95% CI mean Shapiro-Wilk pvalue Ljung-Box pvalue (lag=1) Dip test pvalue
two way interface execution_time [22.738µs; 26.676µs] or [-7.970%; +7.970%] None None None

Group 5

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz 3fa9e66 1734358106 dubloom/ffi-examples-readme
scenario metric min mean ± sd median ± mad p75 p95 p99 max peak_to_median_ratio skewness kurtosis cv sem runs sample_size
normalization/normalize_name/normalize_name/Too-Long-.Too-Long-.Too-Long-.Too-Long-.Too-Long-.Too-Lo... execution_time 303.704µs 307.991µs ± 1.745µs 307.922µs ± 1.294µs 309.319µs 310.883µs 311.640µs 312.034µs 1.34% 0.030 -0.571 0.57% 0.123µs 1 200
normalization/normalize_name/normalize_name/Too-Long-.Too-Long-.Too-Long-.Too-Long-.Too-Long-.Too-Lo... throughput 3204775.923op/s 3246951.710op/s ± 18394.757op/s 3247575.686op/s ± 13591.542op/s 3260127.965op/s 3277463.585op/s 3283644.367op/s 3292682.927op/s 1.39% -0.005 -0.566 0.57% 1300.706op/s 1 200
normalization/normalize_name/normalize_name/bad-name execution_time 27.870µs 28.090µs ± 0.107µs 28.077µs ± 0.074µs 28.155µs 28.277µs 28.398µs 28.488µs 1.46% 0.747 0.745 0.38% 0.008µs 1 200
normalization/normalize_name/normalize_name/bad-name throughput 35102463.754op/s 35600759.110op/s ± 135262.361op/s 35616285.894op/s ± 94437.465op/s 35702316.760op/s 35782336.061op/s 35842138.063op/s 35881506.844op/s 0.74% -0.723 0.681 0.38% 9564.493op/s 1 200
normalization/normalize_name/normalize_name/good execution_time 16.569µs 16.710µs ± 0.075µs 16.702µs ± 0.061µs 16.773µs 16.834µs 16.867µs 16.873µs 1.02% 0.210 -1.030 0.45% 0.005µs 1 200
normalization/normalize_name/normalize_name/good throughput 59266913.865op/s 59845927.601op/s ± 267261.029op/s 59872869.940op/s ± 219083.142op/s 60066126.660op/s 60231774.963op/s 60301782.665op/s 60353392.325op/s 0.80% -0.197 -1.037 0.45% 18898.209op/s 1 200
scenario metric 95% CI mean Shapiro-Wilk pvalue Ljung-Box pvalue (lag=1) Dip test pvalue
normalization/normalize_name/normalize_name/Too-Long-.Too-Long-.Too-Long-.Too-Long-.Too-Long-.Too-Lo... execution_time [307.749µs; 308.233µs] or [-0.079%; +0.079%] None None None
normalization/normalize_name/normalize_name/Too-Long-.Too-Long-.Too-Long-.Too-Long-.Too-Long-.Too-Lo... throughput [3244402.374op/s; 3249501.047op/s] or [-0.079%; +0.079%] None None None
normalization/normalize_name/normalize_name/bad-name execution_time [28.075µs; 28.105µs] or [-0.053%; +0.053%] None None None
normalization/normalize_name/normalize_name/bad-name throughput [35582013.047op/s; 35619505.172op/s] or [-0.053%; +0.053%] None None None
normalization/normalize_name/normalize_name/good execution_time [16.700µs; 16.720µs] or [-0.062%; +0.062%] None None None
normalization/normalize_name/normalize_name/good throughput [59808887.793op/s; 59882967.410op/s] or [-0.062%; +0.062%] None None None

Group 6

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz 3fa9e66 1734358106 dubloom/ffi-examples-readme
scenario metric min mean ± sd median ± mad p75 p95 p99 max peak_to_median_ratio skewness kurtosis cv sem runs sample_size
benching deserializing traces from msgpack to their internal representation execution_time 58.996ms 59.174ms ± 0.188ms 59.118ms ± 0.052ms 59.190ms 59.464ms 60.121ms 60.457ms 2.27% 3.669 17.544 0.32% 0.013ms 1 200
scenario metric 95% CI mean Shapiro-Wilk pvalue Ljung-Box pvalue (lag=1) Dip test pvalue
benching deserializing traces from msgpack to their internal representation execution_time [59.148ms; 59.201ms] or [-0.044%; +0.044%] None None None

Group 7

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz 3fa9e66 1734358106 dubloom/ffi-examples-readme
scenario metric min mean ± sd median ± mad p75 p95 p99 max peak_to_median_ratio skewness kurtosis cv sem runs sample_size
sql/obfuscate_sql_string execution_time 68.939µs 69.196µs ± 0.197µs 69.180µs ± 0.043µs 69.223µs 69.303µs 69.652µs 71.660µs 3.58% 10.041 122.272 0.28% 0.014µs 1 200
scenario metric 95% CI mean Shapiro-Wilk pvalue Ljung-Box pvalue (lag=1) Dip test pvalue
sql/obfuscate_sql_string execution_time [69.169µs; 69.223µs] or [-0.039%; +0.039%] None None None

Group 8

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz 3fa9e66 1734358106 dubloom/ffi-examples-readme
scenario metric min mean ± sd median ± mad p75 p95 p99 max peak_to_median_ratio skewness kurtosis cv sem runs sample_size
tags/replace_trace_tags execution_time 2.649µs 2.708µs ± 0.021µs 2.708µs ± 0.008µs 2.712µs 2.745µs 2.753µs 2.756µs 1.79% -0.016 0.944 0.76% 0.001µs 1 200
scenario metric 95% CI mean Shapiro-Wilk pvalue Ljung-Box pvalue (lag=1) Dip test pvalue
tags/replace_trace_tags execution_time [2.705µs; 2.711µs] or [-0.105%; +0.105%] None None None

Group 9

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz 3fa9e66 1734358106 dubloom/ffi-examples-readme
scenario metric min mean ± sd median ± mad p75 p95 p99 max peak_to_median_ratio skewness kurtosis cv sem runs sample_size
normalization/normalize_service/normalize_service/A0000000000000000000000000000000000000000000000000... execution_time 619.943µs 621.381µs ± 0.724µs 621.418µs ± 0.367µs 621.723µs 622.247µs 624.375µs 626.005µs 0.74% 1.965 10.691 0.12% 0.051µs 1 200
normalization/normalize_service/normalize_service/A0000000000000000000000000000000000000000000000000... throughput 1597432.351op/s 1609322.049op/s ± 1871.550op/s 1609222.865op/s ± 950.630op/s 1610361.452op/s 1612090.585op/s 1612859.302op/s 1613050.829op/s 0.24% -1.934 10.489 0.12% 132.339op/s 1 200
normalization/normalize_service/normalize_service/Data🐨dog🐶 繋がっ⛰てて execution_time 466.097µs 467.217µs ± 0.505µs 467.182µs ± 0.203µs 467.375µs 467.747µs 468.394µs 471.373µs 0.90% 4.095 29.569 0.11% 0.036µs 1 200
normalization/normalize_service/normalize_service/Data🐨dog🐶 繋がっ⛰てて throughput 2121460.302op/s 2140335.937op/s ± 2301.857op/s 2140493.065op/s ± 932.422op/s 2141422.893op/s 2143096.952op/s 2144140.045op/s 2145478.094op/s 0.23% -4.048 29.101 0.11% 162.766op/s 1 200
normalization/normalize_service/normalize_service/Test Conversion 0f Weird !@#$%^&**() Characters execution_time 191.182µs 191.846µs ± 0.418µs 191.807µs ± 0.148µs 191.958µs 192.240µs 192.552µs 195.396µs 1.87% 5.624 43.947 0.22% 0.030µs 1 200
normalization/normalize_service/normalize_service/Test Conversion 0f Weird !@#$%^&**() Characters throughput 5117807.332op/s 5212526.694op/s ± 11210.867op/s 5213569.531op/s ± 4021.752op/s 5217552.193op/s 5222825.176op/s 5225594.728op/s 5230606.721op/s 0.33% -5.531 42.941 0.21% 792.728op/s 1 200
normalization/normalize_service/normalize_service/[empty string] execution_time 47.147µs 47.532µs ± 0.146µs 47.557µs ± 0.082µs 47.631µs 47.724µs 47.779µs 47.840µs 0.60% -0.635 -0.075 0.31% 0.010µs 1 200
normalization/normalize_service/normalize_service/[empty string] throughput 20902963.878op/s 21038849.170op/s ± 64604.738op/s 21027429.838op/s ± 36068.431op/s 21079358.151op/s 21165263.879op/s 21201339.820op/s 21210067.194op/s 0.87% 0.649 -0.059 0.31% 4568.245op/s 1 200
normalization/normalize_service/normalize_service/test_ASCII execution_time 51.192µs 51.515µs ± 0.188µs 51.480µs ± 0.105µs 51.613µs 51.775µs 52.080µs 52.857µs 2.67% 2.417 12.574 0.36% 0.013µs 1 200
normalization/normalize_service/normalize_service/test_ASCII throughput 18918987.095op/s 19412064.070op/s ± 70391.054op/s 19424981.243op/s ± 39628.451op/s 19458489.916op/s 19492534.832op/s 19519125.445op/s 19534156.869op/s 0.56% -2.324 11.747 0.36% 4977.399op/s 1 200
scenario metric 95% CI mean Shapiro-Wilk pvalue Ljung-Box pvalue (lag=1) Dip test pvalue
normalization/normalize_service/normalize_service/A0000000000000000000000000000000000000000000000000... execution_time [621.280µs; 621.481µs] or [-0.016%; +0.016%] None None None
normalization/normalize_service/normalize_service/A0000000000000000000000000000000000000000000000000... throughput [1609062.670op/s; 1609581.428op/s] or [-0.016%; +0.016%] None None None
normalization/normalize_service/normalize_service/Data🐨dog🐶 繋がっ⛰てて execution_time [467.147µs; 467.287µs] or [-0.015%; +0.015%] None None None
normalization/normalize_service/normalize_service/Data🐨dog🐶 繋がっ⛰てて throughput [2140016.922op/s; 2140654.952op/s] or [-0.015%; +0.015%] None None None
normalization/normalize_service/normalize_service/Test Conversion 0f Weird !@#$%^&**() Characters execution_time [191.789µs; 191.904µs] or [-0.030%; +0.030%] None None None
normalization/normalize_service/normalize_service/Test Conversion 0f Weird !@#$%^&**() Characters throughput [5210972.976op/s; 5214080.412op/s] or [-0.030%; +0.030%] None None None
normalization/normalize_service/normalize_service/[empty string] execution_time [47.511µs; 47.552µs] or [-0.042%; +0.042%] None None None
normalization/normalize_service/normalize_service/[empty string] throughput [21029895.574op/s; 21047802.765op/s] or [-0.043%; +0.043%] None None None
normalization/normalize_service/normalize_service/test_ASCII execution_time [51.489µs; 51.541µs] or [-0.051%; +0.051%] None None None
normalization/normalize_service/normalize_service/test_ASCII throughput [19402308.547op/s; 19421819.593op/s] or [-0.050%; +0.050%] None None None

Group 10

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz 3fa9e66 1734358106 dubloom/ffi-examples-readme
scenario metric min mean ± sd median ± mad p75 p95 p99 max peak_to_median_ratio skewness kurtosis cv sem runs sample_size
redis/obfuscate_redis_string execution_time 38.572µs 39.184µs ± 1.018µs 38.711µs ± 0.063µs 38.848µs 41.396µs 41.450µs 41.540µs 7.31% 1.677 0.869 2.59% 0.072µs 1 200
scenario metric 95% CI mean Shapiro-Wilk pvalue Ljung-Box pvalue (lag=1) Dip test pvalue
redis/obfuscate_redis_string execution_time [39.043µs; 39.325µs] or [-0.360%; +0.360%] None None None

Group 11

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz 3fa9e66 1734358106 dubloom/ffi-examples-readme
scenario metric min mean ± sd median ± mad p75 p95 p99 max peak_to_median_ratio skewness kurtosis cv sem runs sample_size
concentrator/add_spans_to_concentrator execution_time 8.978ms 9.034ms ± 0.021ms 9.032ms ± 0.013ms 9.045ms 9.077ms 9.087ms 9.120ms 0.98% 0.741 1.130 0.23% 0.001ms 1 200
scenario metric 95% CI mean Shapiro-Wilk pvalue Ljung-Box pvalue (lag=1) Dip test pvalue
concentrator/add_spans_to_concentrator execution_time [9.031ms; 9.037ms] or [-0.032%; +0.032%] None None None

Group 12

cpu_model git_commit_sha git_commit_date git_branch
Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz 3fa9e66 1734358106 dubloom/ffi-examples-readme
scenario metric min mean ± sd median ± mad p75 p95 p99 max peak_to_median_ratio skewness kurtosis cv sem runs sample_size
credit_card/is_card_number/ execution_time 4.621µs 4.633µs ± 0.006µs 4.632µs ± 0.002µs 4.635µs 4.640µs 4.646µs 4.691µs 1.27% 4.718 43.126 0.13% 0.000µs 1 200
credit_card/is_card_number/ throughput 213180475.037op/s 215851233.973op/s ± 276341.432op/s 215877856.323op/s ± 111358.823op/s 215983002.145op/s 216180453.504op/s 216257674.483op/s 216411593.209op/s 0.25% -4.630 42.016 0.13% 19540.290op/s 1 200
credit_card/is_card_number/ 3782-8224-6310-005 execution_time 90.824µs 91.874µs ± 0.585µs 91.804µs ± 0.356µs 92.205µs 92.679µs 92.918µs 96.659µs 5.29% 2.802 20.634 0.64% 0.041µs 1 200
credit_card/is_card_number/ 3782-8224-6310-005 throughput 10345691.309op/s 10884941.250op/s ± 68148.457op/s 10892723.676op/s ± 42439.984op/s 10929837.641op/s 10975103.523op/s 10988499.409op/s 11010292.300op/s 1.08% -2.536 17.886 0.62% 4818.824op/s 1 200
credit_card/is_card_number/ 378282246310005 execution_time 83.671µs 84.073µs ± 0.411µs 84.004µs ± 0.043µs 84.060µs 84.263µs 85.257µs 89.188µs 6.17% 10.217 120.399 0.49% 0.029µs 1 200
credit_card/is_card_number/ 378282246310005 throughput 11212246.411op/s 11894760.915op/s ± 55376.546op/s 11904130.734op/s ± 6151.818op/s 11909737.699op/s 11917676.119op/s 11924488.209op/s 11951549.423op/s 0.40% -9.958 115.526 0.46% 3915.713op/s 1 200
credit_card/is_card_number/37828224631 execution_time 4.616µs 4.632µs ± 0.008µs 4.632µs ± 0.003µs 4.634µs 4.638µs 4.677µs 4.695µs 1.37% 4.671 31.501 0.17% 0.001µs 1 200
credit_card/is_card_number/37828224631 throughput 212984791.959op/s 215887753.035op/s ± 369530.787op/s 215908960.234op/s ± 125913.321op/s 216046479.515op/s 216286068.475op/s 216457251.501op/s 216658478.000op/s 0.35% -4.611 30.955 0.17% 26129.773op/s 1 200
credit_card/is_card_number/378282246310005 execution_time 81.026µs 81.204µs ± 0.106µs 81.181µs ± 0.035µs 81.221µs 81.425µs 81.633µs 81.724µs 0.67% 2.127 6.048 0.13% 0.008µs 1 200
credit_card/is_card_number/378282246310005 throughput 12236283.422op/s 12314690.994op/s ± 16098.734op/s 12318101.256op/s ± 5242.225op/s 12323257.224op/s 12332649.246op/s 12339011.020op/s 12341737.127op/s 0.19% -2.114 5.978 0.13% 1138.352op/s 1 200
credit_card/is_card_number/37828224631000521389798 execution_time 59.018µs 59.233µs ± 0.130µs 59.229µs ± 0.095µs 59.290µs 59.448µs 59.619µs 59.719µs 0.83% 0.990 0.961 0.22% 0.009µs 1 200
credit_card/is_card_number/37828224631000521389798 throughput 16745096.139op/s 16882521.180op/s ± 36938.632op/s 16883701.319op/s ± 27168.988op/s 16913141.943op/s 16926200.574op/s 16933230.619op/s 16944066.434op/s 0.36% -0.977 0.920 0.22% 2611.956op/s 1 200
credit_card/is_card_number/x371413321323331 execution_time 6.830µs 6.844µs ± 0.007µs 6.843µs ± 0.002µs 6.846µs 6.850µs 6.858µs 6.909µs 0.96% 5.198 47.189 0.10% 0.000µs 1 200
credit_card/is_card_number/x371413321323331 throughput 144728860.888op/s 146111886.676op/s ± 141471.585op/s 146124615.073op/s ± 44642.601op/s 146168784.750op/s 146261057.727op/s 146370561.089op/s 146404545.039op/s 0.19% -5.134 46.389 0.10% 10003.552op/s 1 200
credit_card/is_card_number_no_luhn/ execution_time 4.619µs 4.632µs ± 0.005µs 4.632µs ± 0.003µs 4.635µs 4.639µs 4.641µs 4.645µs 0.29% -0.021 -0.032 0.10% 0.000µs 1 200
credit_card/is_card_number_no_luhn/ throughput 215287270.898op/s 215907545.950op/s ± 211242.758op/s 215912199.039op/s ± 138539.565op/s 216047149.714op/s 216251600.234op/s 216408383.290op/s 216511428.273op/s 0.28% 0.026 -0.031 0.10% 14937.119op/s 1 200
credit_card/is_card_number_no_luhn/ 3782-8224-6310-005 execution_time 72.396µs 73.603µs ± 0.190µs 73.644µs ± 0.072µs 73.703µs 73.793µs 73.826µs 74.226µs 0.79% -2.349 10.584 0.26% 0.013µs 1 200
credit_card/is_card_number_no_luhn/ 3782-8224-6310-005 throughput 13472369.507op/s 13586533.641op/s ± 35324.085op/s 13578908.561op/s ± 13218.280op/s 13595260.355op/s 13648686.893op/s 13721245.912op/s 13812913.632op/s 1.72% 2.405 10.920 0.26% 2497.790op/s 1 200
credit_card/is_card_number_no_luhn/ 378282246310005 execution_time 64.682µs 65.178µs ± 0.244µs 65.160µs ± 0.144µs 65.298µs 65.604µs 65.849µs 65.947µs 1.21% 0.521 0.202 0.37% 0.017µs 1 200
credit_card/is_card_number_no_luhn/ 378282246310005 throughput 15163669.659op/s 15342746.697op/s ± 57251.883op/s 15346827.892op/s ± 34042.920op/s 15381420.058op/s 15431787.399op/s 15445340.159op/s 15460287.391op/s 0.74% -0.499 0.169 0.37% 4048.319op/s 1 200
credit_card/is_card_number_no_luhn/37828224631 execution_time 4.611µs 4.631µs ± 0.004µs 4.632µs ± 0.003µs 4.634µs 4.638µs 4.642µs 4.647µs 0.33% -0.366 2.357 0.10% 0.000µs 1 200
credit_card/is_card_number_no_luhn/37828224631 throughput 215204931.113op/s 215919874.386op/s ± 206558.991op/s 215906228.897op/s ± 124369.456op/s 216043144.795op/s 216259484.916op/s 216355940.091op/s 216882782.641op/s 0.45% 0.378 2.383 0.10% 14605.926op/s 1 200
credit_card/is_card_number_no_luhn/378282246310005 execution_time 62.912µs 63.552µs ± 0.141µs 63.566µs ± 0.072µs 63.644µs 63.729µs 63.800µs 64.008µs 0.70% -0.923 2.438 0.22% 0.010µs 1 200
credit_card/is_card_number_no_luhn/378282246310005 throughput 15623044.029op/s 15735123.335op/s ± 34954.937op/s 15731756.429op/s ± 17757.716op/s 15748585.985op/s 15804441.285op/s 15836733.317op/s 15895193.133op/s 1.04% 0.947 2.498 0.22% 2471.687op/s 1 200
credit_card/is_card_number_no_luhn/37828224631000521389798 execution_time 59.020µs 59.281µs ± 0.162µs 59.259µs ± 0.125µs 59.391µs 59.589µs 59.703µs 59.846µs 0.99% 0.827 0.282 0.27% 0.011µs 1 200
credit_card/is_card_number_no_luhn/37828224631000521389798 throughput 16709609.044op/s 16868946.496op/s ± 45880.683op/s 16874974.414op/s ± 35806.211op/s 16907470.144op/s 16925613.277op/s 16930885.375op/s 16943480.359op/s 0.41% -0.814 0.248 0.27% 3244.254op/s 1 200
credit_card/is_card_number_no_luhn/x371413321323331 execution_time 6.832µs 6.843µs ± 0.004µs 6.843µs ± 0.002µs 6.845µs 6.849µs 6.852µs 6.877µs 0.50% 2.816 22.193 0.06% 0.000µs 1 200
credit_card/is_card_number_no_luhn/x371413321323331 throughput 145403566.505op/s 146125224.261op/s ± 87653.999op/s 146129623.976op/s ± 47002.382op/s 146176052.708op/s 146234081.320op/s 146305642.668op/s 146371005.245op/s 0.17% -2.787 21.905 0.06% 6198.074op/s 1 200
scenario metric 95% CI mean Shapiro-Wilk pvalue Ljung-Box pvalue (lag=1) Dip test pvalue
credit_card/is_card_number/ execution_time [4.632µs; 4.634µs] or [-0.018%; +0.018%] None None None
credit_card/is_card_number/ throughput [215812935.708op/s; 215889532.238op/s] or [-0.018%; +0.018%] None None None
credit_card/is_card_number/ 3782-8224-6310-005 execution_time [91.793µs; 91.955µs] or [-0.088%; +0.088%] None None None
credit_card/is_card_number/ 3782-8224-6310-005 throughput [10875496.529op/s; 10894385.971op/s] or [-0.087%; +0.087%] None None None
credit_card/is_card_number/ 378282246310005 execution_time [84.016µs; 84.129µs] or [-0.068%; +0.068%] None None None
credit_card/is_card_number/ 378282246310005 throughput [11887086.258op/s; 11902435.572op/s] or [-0.065%; +0.065%] None None None
credit_card/is_card_number/37828224631 execution_time [4.631µs; 4.633µs] or [-0.024%; +0.024%] None None None
credit_card/is_card_number/37828224631 throughput [215836539.622op/s; 215938966.448op/s] or [-0.024%; +0.024%] None None None
credit_card/is_card_number/378282246310005 execution_time [81.189µs; 81.219µs] or [-0.018%; +0.018%] None None None
credit_card/is_card_number/378282246310005 throughput [12312459.864op/s; 12316922.123op/s] or [-0.018%; +0.018%] None None None
credit_card/is_card_number/37828224631000521389798 execution_time [59.215µs; 59.251µs] or [-0.030%; +0.030%] None None None
credit_card/is_card_number/37828224631000521389798 throughput [16877401.841op/s; 16887640.519op/s] or [-0.030%; +0.030%] None None None
credit_card/is_card_number/x371413321323331 execution_time [6.843µs; 6.845µs] or [-0.013%; +0.013%] None None None
credit_card/is_card_number/x371413321323331 throughput [146092280.075op/s; 146131493.277op/s] or [-0.013%; +0.013%] None None None
credit_card/is_card_number_no_luhn/ execution_time [4.631µs; 4.632µs] or [-0.014%; +0.014%] None None None
credit_card/is_card_number_no_luhn/ throughput [215878269.736op/s; 215936822.165op/s] or [-0.014%; +0.014%] None None None
credit_card/is_card_number_no_luhn/ 3782-8224-6310-005 execution_time [73.576µs; 73.629µs] or [-0.036%; +0.036%] None None None
credit_card/is_card_number_no_luhn/ 3782-8224-6310-005 throughput [13581638.063op/s; 13591429.220op/s] or [-0.036%; +0.036%] None None None
credit_card/is_card_number_no_luhn/ 378282246310005 execution_time [65.145µs; 65.212µs] or [-0.052%; +0.052%] None None None
credit_card/is_card_number_no_luhn/ 378282246310005 throughput [15334812.136op/s; 15350681.257op/s] or [-0.052%; +0.052%] None None None
credit_card/is_card_number_no_luhn/37828224631 execution_time [4.631µs; 4.632µs] or [-0.013%; +0.013%] None None None
credit_card/is_card_number_no_luhn/37828224631 throughput [215891247.296op/s; 215948501.475op/s] or [-0.013%; +0.013%] None None None
credit_card/is_card_number_no_luhn/378282246310005 execution_time [63.533µs; 63.572µs] or [-0.031%; +0.031%] None None None
credit_card/is_card_number_no_luhn/378282246310005 throughput [15730278.917op/s; 15739967.753op/s] or [-0.031%; +0.031%] None None None
credit_card/is_card_number_no_luhn/37828224631000521389798 execution_time [59.259µs; 59.303µs] or [-0.038%; +0.038%] None None None
credit_card/is_card_number_no_luhn/37828224631000521389798 throughput [16862587.875op/s; 16875305.118op/s] or [-0.038%; +0.038%] None None None
credit_card/is_card_number_no_luhn/x371413321323331 execution_time [6.843µs; 6.844µs] or [-0.008%; +0.008%] None None None
credit_card/is_card_number_no_luhn/x371413321323331 throughput [146113076.260op/s; 146137372.262op/s] or [-0.008%; +0.008%] None None None

Baseline

Omitted due to size.

@codecov-commenter
Copy link

codecov-commenter commented Dec 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.91%. Comparing base (c6ad4ff) to head (3fa9e66).
Report is 42 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #785      +/-   ##
==========================================
+ Coverage   70.59%   70.91%   +0.32%     
==========================================
  Files         296      313      +17     
  Lines       43246    45751    +2505     
==========================================
+ Hits        30528    32444    +1916     
- Misses      12718    13307     +589     
Components Coverage Δ
crashtracker 38.27% <ø> (+1.13%) ⬆️
crashtracker-ffi 5.71% <ø> (-2.97%) ⬇️
datadog-alloc 98.73% <ø> (-0.01%) ⬇️
data-pipeline 92.06% <ø> (+0.07%) ⬆️
data-pipeline-ffi 90.54% <ø> (+90.54%) ⬆️
ddcommon 82.31% <ø> (-1.15%) ⬇️
ddcommon-ffi 65.52% <ø> (-3.60%) ⬇️
ddtelemetry 59.51% <ø> (+0.46%) ⬆️
ddtelemetry-ffi 22.46% <ø> (+0.32%) ⬆️
dogstatsd 89.45% <ø> (ø)
dogstatsd-client 79.77% <ø> (ø)
ipc 82.76% <ø> (ø)
profiling 84.31% <ø> (+0.01%) ⬆️
profiling-ffi 77.55% <ø> (+0.09%) ⬆️
serverless 0.00% <ø> (ø)
sidecar 40.56% <ø> (+2.54%) ⬆️
sidecar-ffi 1.18% <ø> (+1.18%) ⬆️
spawn-worker 54.37% <ø> (+4.01%) ⬆️
tinybytes 93.60% <ø> (-1.17%) ⬇️
trace-mini-agent 72.38% <ø> (+0.02%) ⬆️
trace-normalization 98.23% <ø> (ø)
trace-obfuscation 95.77% <ø> (ø)
trace-protobuf 77.67% <ø> (ø)
trace-utils 93.52% <ø> (-0.02%) ⬇️

@dubloom dubloom added the documentation Improvements or additions to documentation label Dec 6, 2024
Copy link
Contributor

@danielsn danielsn left a comment

Choose a reason for hiding this comment

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

Thanks for doing this!

In order to be able to run FFI examples, you need to build the shared library and headers with the command:
```c
// (dont worry too much about the fact that this is named "profiling")
./build-profiling-ffi.sh ./build
Copy link
Contributor

Choose a reason for hiding this comment

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

alternatively:

cargo run --bin release --features profiling,telemetry,data-pipeline,symbolizer,crashtracker --release -- --out

Copy link
Contributor

Choose a reason for hiding this comment

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

+1, we're working towards removing the scripts so it would be good that people running the examples use the new way to build the project.


You can then build the examples with:

```c
Copy link
Contributor

Choose a reason for hiding this comment

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

bash?

@dubloom dubloom requested a review from danielsn December 16, 2024 14:09
@dubloom
Copy link
Contributor Author

dubloom commented Dec 16, 2024

Should I add the release folder in the .gitignore ? I would say yes but maybe there is a reason for it to not be in it

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

Successfully merging this pull request may close these issues.

5 participants