Sharkbench

Benchmarking programming languages and web frameworks

Gin (Go)

Gin is a high-performance HTTP web framework written in Go (Golang) built on top of HttpRouter, the fastest HTTP router for Go. It provides a simple API for building robust web applications and microservices with an emphasis on speed and efficiency. Gin includes helpful features like middleware support, error management, and JSON validation.
This benchmark tests how fast a framework can perform concurrent HTTP requests, I/O operations, and JSON de/serialization.

OS: Linux/DockerCPU: Ryzen 7 7800X3DLast Updated: 2025-05-04
MedianP99
Framework
Requests per second
Latency
Stability
Memory
3546
1.0 ms
1.14 %
16.7 MB
3400
1.1 ms
1.17 %
17.6 MB
3000
1.2 ms
1.27 %
26.4 MB

About Go

Paradigm

Concurrent, Imperative, Procedural

Execution

Compiled

Typing

Static

Null Safety

NO

Memory Management

Garbage Collection

Go is a statically typed, compiled programming language designed at Google that is syntactically similar to C but with memory safety and garbage collection. It is designed to be simple, efficient, and readable with a focus on concurrent programming. Go is widely used for building network servers, data pipelines, and command-line tools.

Go web frameworks

How does Gin compare other Go frameworks?
MedianP99
Framework
Requests per second
Latency
Stability
Memory
5567
0.7 ms
0.82 %
13.4 MB
3546
1.0 ms
1.14 %
16.7 MB

Popular web frameworks

How does Gin compare to other popular frameworks?
MedianP99
Framework
Requests per second
Latency
Stability
Memory
21030
1.6 ms
71.96 %
8.5 MB
14707
1.2 ms
2.64 %
136.5 MB
5766
5.5 ms
64.50 %
82.5 MB
3546
1.0 ms
1.14 %
16.7 MB
1185
21.0 ms
21.21 %
41.2 MB
1105
1.7 ms
1.67 %
596.8 MB
1092
7.7 ms
9.22 %
90.3 MB
950
8.8 ms
10.33 %
130.1 MB
299
101.7 ms
56.47 %
84.2 MB

© 2025 Tien Do Nam