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

Updated benchmark and added tests #95

Closed
wants to merge 2 commits into from

Conversation

MarkReedZ
Copy link
Contributor

I moved jsonrpc_client.go to test/bench.go and added support for multiple connections via -c.

I've also added test/test.go to do a few simple checks

On ubuntu 24.04 with posix and uring I see:

$ go run test/test.go
  Test rpc ... successful
  Test html ... unexpected reply
    exp:  {"jsonrpc":"2.0","id":0,"result":true}
    act:  {"jsonrpc":"2.0","id":0,"error":{"code":-32700,"message":"Invalid JSON was received by the server."}}
  Test 4097 byte json ... successful
  Test partial ... successful

@MarkReedZ MarkReedZ closed this May 13, 2024
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