Skip to content
This repository was archived by the owner on Mar 24, 2026. It is now read-only.

adding benchmarks for Nim stdlib - #6714

Merged
NateBrady23 merged 44 commits into
TechEmpower:masterfrom
rishavs:master
Jul 28, 2021
Merged

NateBrady23 merged 44 commits into
TechEmpower:masterfrom
rishavs:master

Conversation

@rishavs

@rishavs rishavs commented Jul 21, 2021 •

Copy link
Copy Markdown
Contributor

Hi

I am adding support for the core stdlib webserver implementation in the Nim Language.
Nim has a robust stdlib which contains all the tools and methods required to make simple web apps.

This is to gauge the perf of the stdlib web server itself. Also, I intend to add all the benchmarks (which are currently missing for other Nim frameworks) so that we can calculate the combined summary score for Nim.

@rishavs

rishavs commented Jul 24, 2021

Copy link
Copy Markdown
Contributor Author

Hi this is ready to be merged. Can you please check up on this?

Only the caches test is remaining that I am thinking of skipping due to personal bandwidth issues. Will pick it up in the future.
Other major future work is to optimize the code here as it is very naively coded without considering possible perf issues.

@rishavs

rishavs commented Jul 26, 2021 •

Copy link
Copy Markdown
Contributor Author

Checking back if there is anything needed from my side to get this picked up. I am not sure what does the label "PR: Please Update" stands for. I am not used to collaborating on GH, so hopefully I didn't miss anything important.

@NateBrady23
NateBrady23 merged commit cbf6b2b into TechEmpower:master Jul 28, 2021
@dom96

dom96 commented Jul 28, 2021

Copy link
Copy Markdown
Contributor

This is cool, but it uses db_postgres which is not an async library. You will get really poor performance that is not representative of Nim here.

@rishavs

rishavs commented Jul 28, 2021

Copy link
Copy Markdown
Contributor Author

Thanks for the heads up @dom96 .
I think after a few rounds of reports, I will update the db drivers to async ones. Which would be the best postgres driver for nim in your opinion?

@dom96

dom96 commented Jul 29, 2021

Copy link
Copy Markdown
Contributor

I'm afraid I'm not aware of any. Maybe some popped up that I haven't noticed, but AFAIK there aren't any truly efficient drivers for postgres in Nim that support async. Maybe you can write the first one? :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants