Replies: 7 comments 8 replies
-
Veb* :) Ved is the editor. |
Beta Was this translation helpful? Give feedback.
-
I'll have a look and get back to you tomorrow. |
Beta Was this translation helpful? Give feedback.
-
Looking forward to seeing how VEB compares to other frameworks |
Beta Was this translation helpful? Give feedback.
-
Someone submitted a similar code to the competition before I did. It's about the same code, but only uses Postgres and some ORM. I will () I' ran the benchmark locally for H2O (a C web server), pico.v (a simple V server) and Veb. The results are the following:
Some thoughts:
I will now config and run my code from the repository I've presented and try to implement a simple DB code in |
Beta Was this translation helpful? Give feedback.
-
Update: I've just finished the Veb + Postgres benchmarks. MySql ones will come later. Scenarios
#!/bin/sh
for i in $(seq 0 $(($(nproc --all)-1))); do
taskset -c $i ./veb &
done
wait Thoughts
pub fn (app &App) plaintext(mut ctx Context) veb.Result {
return ctx.text('Hello, World!')
}
Benchmark (in my computer)
|
Beta Was this translation helpful? Give feedback.
-
I've removed the
|
Beta Was this translation helpful? Give feedback.
-
"* V fmt forces structs with uppercase and fields with lowercase. It's a source of errors if we want to match with external sources, like SQL and JSON." That's why V has attributes to allow you to specify the SQL/JSON names to match with the V names. Go has the same facility, since they also have restrictions on how things are named. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
There is a "competition" for Web Framework called Web Framework Benchmarks. It's redesigned to compare different languages and frameworks in "common" scenarios.
I've created a sample server using V's Veb, DB and ORM standard libraries. I will submit it to the benchmark organizers, but before, it would be great to have outside opinion and improvements.
https://github.com/brmassa/VTechEmpowerFrameworkBenchmarks
Beta Was this translation helpful? Give feedback.
All reactions