First post and first contact with Crystal. Hello!
Now a small question: which code am I actually running in the following example? Is 100% native Crystal, or is there some trick (like a C binding, or whatever)?
I just test this locally with Apache Benchmark (ab) to see how many “hello worlds” I get per second.
I’m asking because it’s blazingly fast, I cannot make a faster version in C, Rust or Go. It’s driving me nuts
require “http/server” module ServidorHttp VERSION = “0.1.0” server = HTTP::Server.new do |context| context.response.content_type = "text/plain" context.response.print "Hello, World!" end server.listen(8080) end