Skip to content

Commit 38f3da2

Browse files
committed
Add TFB readme section
1 parent 002ee3c commit 38f3da2

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

README.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ See `CONTRIBUTING.md`
4747

4848
To regenerate the script use (*note:* atm you need to comment `doc/cookbook/` packages).
4949

50-
```
50+
```sh
5151
runghc ~/Documents/other-haskell/multi-ghc-travis/make_travis_yml_2.hs regenerate
5252
```
5353

@@ -59,3 +59,27 @@ For example, the following will disallow single `troublemaker-13.37` package ver
5959
constraints:
6060
troublemaker <13.37 && > 13.37
6161
```
62+
63+
## TechEmpower framework bechmarks
64+
65+
We develop & maintain the servant TFB entry in https://github.com/haskell-servant/FrameworkBenchmarks/
66+
67+
To verify (i.e. compile and test that it works)
68+
69+
```sh
70+
./tfb --mode verify --test servant servant-beam servant-psql-simple --type json plaintext db fortune
71+
```
72+
73+
To compare with `warp`
74+
75+
```sh
76+
./tfb --mode benchmark --test warp servant servant-beam servant-psql-simple --type json plaintext db fortune
77+
```
78+
79+
To compare with `reitit` (Clojure framework)
80+
81+
```sh
82+
./tfb --mode benchmark --test reitit reitit-async reitit-jdbc servant servant-beam servant-psql-simple --type json plaintext db fortune
83+
```
84+
85+
And visualise the results at https://www.techempower.com/benchmarks/#section=test

0 commit comments

Comments
 (0)