Skip to content

Update code example in README #1109

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Update code example in README #1109

wants to merge 1 commit into from

Conversation

dherman
Copy link
Collaborator

@dherman dherman commented Jul 11, 2025

Update the "A Taste..." section of the README.md to use the Rust example from the https://neon-rs.dev website.

…t example from the https://neon-rs.dev website. As you requested, I've also removed the JavaScript snippet and "// Neon" comment.
Copy link

🐰 Bencher Report

Branchupdate-readme-example
Testbedubuntu-latest
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
nanoseconds (ns)
(Result Δ%)
Lower Boundary
nanoseconds (ns)
(Limit %)
Upper Boundary
nanoseconds (ns)
(Limit %)
ThroughputBenchmark Result
operations / second (ops/s)
(Result Δ%)
Lower Boundary
operations / second (ops/s)
(Limit %)
Upper Boundary
operations / second (ops/s)
(Limit %)
JsFunction::bind📈 view plot
🚷 view threshold
206.99 ns
(+1.42%)Baseline: 204.09 ns
183.68 ns
(88.74%)
408.18 ns
(50.71%)
📈 view plot
🚷 view threshold
4,829,590.54 ops/s
(-0.90%)Baseline: 4,873,575.64 ops/s
0.00 ops/s
(0.00%)
5,360,933.20 ops/s
(90.09%)
JsFunction::call📈 view plot
🚷 view threshold
223.91 ns
(+2.35%)Baseline: 218.77 ns
196.89 ns
(87.93%)
437.54 ns
(51.18%)
📈 view plot
🚷 view threshold
4,462,856.43 ops/s
(-1.97%)Baseline: 4,552,467.33 ops/s
0.00 ops/s
(0.00%)
5,007,714.06 ops/s
(89.12%)
JsFunction::call_with📈 view plot
🚷 view threshold
196.27 ns
(-4.97%)Baseline: 206.54 ns
185.89 ns
(94.71%)
413.08 ns
(47.51%)
📈 view plot
🚷 view threshold
5,003,592.81 ops/s
(+3.54%)Baseline: 4,832,397.85 ops/s
0.00 ops/s
(0.00%)
5,315,637.63 ops/s
(94.13%)
auto-exported-noop📈 view plot
🚷 view threshold
28.70 ns
(-6.55%)Baseline: 30.71 ns
27.64 ns
(96.31%)
61.42 ns
(46.72%)
📈 view plot
🚷 view threshold
34,518,614.21 ops/s
(+3.73%)Baseline: 33,276,138.31 ops/s
0.00 ops/s
(0.00%)
36,603,752.14 ops/s
(94.30%)
hello-world📈 view plot
🚷 view threshold
58.43 ns
(+1.79%)Baseline: 57.41 ns
51.66 ns
(88.41%)
114.81 ns
(50.90%)
📈 view plot
🚷 view threshold
17,105,165.95 ops/s
(-1.59%)Baseline: 17,381,169.12 ops/s
0.00 ops/s
(0.00%)
19,119,286.03 ops/s
(89.47%)
manually-exported-noop📈 view plot
🚷 view threshold
28.63 ns
(+0.55%)Baseline: 28.47 ns
25.62 ns
(89.51%)
56.94 ns
(50.27%)
📈 view plot
🚷 view threshold
34,267,657.88 ops/s
(-2.11%)Baseline: 35,005,475.94 ops/s
0.00 ops/s
(0.00%)
38,506,023.53 ops/s
(88.99%)
🐰 View full continuous benchmarking report in Bencher

Copy link

codecov bot commented Jul 11, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.76%. Comparing base (da5b61d) to head (9113014).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1109      +/-   ##
==========================================
- Coverage   84.34%   82.76%   -1.59%     
==========================================
  Files          74       74              
  Lines        5578     4695     -883     
  Branches     5578     4695     -883     
==========================================
- Hits         4705     3886     -819     
+ Misses        767      716      -51     
+ Partials      106       93      -13     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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

Successfully merging this pull request may close these issues.

1 participant