Skip to content

Commit 9754542

Browse files
authored
Merge branch 'TechEmpower:master' into master
2 parents 9c51c6c + 46de0d4 commit 9754542

File tree

49 files changed

+1601
-239
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+1601
-239
lines changed

frameworks/CSharp/aspnetcore/benchmark_config.json

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"framework": "aspnetcore",
3+
"maintainers": ["DamianEdwards", "sebastienros"],
34
"tests": [
45
{
56
"default": {
@@ -14,15 +15,15 @@
1415
"approach": "Realistic",
1516
"classification": "Platform",
1617
"database": "Postgres",
17-
"framework": "ASP.NET Core",
18+
"framework": "ASP.NET Core [Platform]",
1819
"language": "C#",
1920
"orm": "Raw",
2021
"platform": ".NET",
2122
"flavor": "CoreCLR",
2223
"webserver": "Kestrel",
2324
"os": "Linux",
2425
"database_os": "Linux",
25-
"display_name": "ASP.NET Core [Platform, Pg]",
26+
"display_name": "ASP.NET Core [Platform]",
2627
"notes": ""
2728
},
2829
"aot": {
@@ -37,15 +38,15 @@
3738
"approach": "Realistic",
3839
"classification": "Platform",
3940
"database": "Postgres",
40-
"framework": "ASP.NET Core",
41+
"framework": "ASP.NET Core [Platform]",
4142
"language": "C#",
4243
"orm": "Raw",
4344
"platform": ".NET",
4445
"flavor": "NativeAOT",
4546
"webserver": "Kestrel",
4647
"os": "Linux",
4748
"database_os": "Linux",
48-
"display_name": "ASP.NET Core [Platform, Pg, AOT]",
49+
"display_name": "ASP.NET Core [Platform, AOT]",
4950
"notes": ""
5051
},
5152
"minimal": {
@@ -67,7 +68,7 @@
6768
"webserver": "Kestrel",
6869
"os": "Linux",
6970
"database_os": "Linux",
70-
"display_name": "ASP.NET Core [Minimal APIs, Pg, Dapper]",
71+
"display_name": "ASP.NET Core [Minimal APIs]",
7172
"notes": "",
7273
"versus": "aspnetcore"
7374
},
@@ -89,7 +90,7 @@
8990
"webserver": "Kestrel",
9091
"os": "Linux",
9192
"database_os": "Linux",
92-
"display_name": "ASP.NET Core [MVC, Pg, EF]",
93+
"display_name": "ASP.NET Core [MVC]",
9394
"notes": "",
9495
"versus": "aspnetcore"
9596
},
@@ -103,16 +104,17 @@
103104
"approach": "Realistic",
104105
"classification": "Platform",
105106
"database": "MySQL",
106-
"framework": "ASP.NET Core",
107+
"framework": "ASP.NET Core [Platform]",
107108
"language": "C#",
108109
"orm": "Raw",
109110
"platform": ".NET",
110111
"flavor": "CoreCLR",
111112
"webserver": "Kestrel",
112113
"os": "Linux",
113114
"database_os": "Linux",
114-
"display_name": "ASP.NET Core [Platform, My]",
115-
"notes": ""
115+
"display_name": "ASP.NET Core [Platform, MySQL]",
116+
"notes": "",
117+
"versus": "aspnetcore"
116118
}
117119
}
118120
]

frameworks/Haskell/ihp/ihp.dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
FROM nixos/nix
22

3-
COPY ./src /ihp
4-
WORKDIR /ihp
5-
63
# Add build dependencies
7-
RUN nix-env -i cachix
4+
RUN nix-env -f https://github.com/NixOS/nixpkgs/archive/54b4bb956f9891b872904abdb632cea85a033ff2.tar.gz -iA cachix
85
RUN cachix use digitallyinduced
96

7+
COPY ./src /ihp
8+
WORKDIR /ihp
9+
1010
# Build
11-
RUN nix-build -j auto --cores 0
11+
RUN nix --extra-experimental-features "nix-command flakes" build -j auto --cores 0 .#optimized-prod-server
1212

1313
# Setup
1414
ENV DATABASE_URL=postgres://benchmarkdbuser:benchmarkdbpass@tfb-database:5432/hello_world

frameworks/Haskell/ihp/src/.envrc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
if ! has nix_direnv_version || ! nix_direnv_version 2.3.0; then
2+
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.3.0/direnvrc" "sha256-Dmd+j63L84wuzgyjITIfSxSD57Tx7v51DMxVZOsiUD8="
3+
fi
4+
5+
use flake . --impure --accept-flake-config
6+
7+
# Include .env file if it exists locally. Use the .env file to load env vars that you don't want to commit to git
8+
if [ -f .env ]
9+
then
10+
set -o allexport
11+
source .env
12+
set +o allexport
13+
fi
14+
# Add your env vars here
15+
#
16+
# E.g. export AWS_ACCESS_KEY_ID="XXXXX"

frameworks/Haskell/ihp/src/.ghci

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
import Prelude
2-
:def source readFile
3-
:source build/ihp-lib/applicationGhciConfig
1+
:set -XNoImplicitPrelude
2+
:def loadFromIHP \file -> (System.Environment.getEnv "IHP_LIB") >>= (\ihpLib -> readFile (ihpLib <> "/" <> file))
3+
:loadFromIHP applicationGhciConfig
4+
import IHP.Prelude

frameworks/Haskell/ihp/src/.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
.DS_Store
2-
.envrc
32
.idea
43
tmp
54
result
@@ -17,3 +16,8 @@ gen
1716
del
1817
static/prod.*
1918
Config/client_session_key.aes
19+
20+
.devenv*
21+
devenv.local.nix
22+
.direnv
23+
.env
Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
ifneq ($(wildcard IHP/.*),)
2-
IHP = IHP/lib/IHP
3-
else
4-
IHP = $(shell dirname $$(which RunDevServer))/../lib/IHP
5-
endif
6-
7-
include ${IHP}/Makefile.dist
8-
91
CSS_FILES += ${IHP}/static/vendor/bootstrap.min.css
102
CSS_FILES += ${IHP}/static/vendor/flatpickr.min.css
113

@@ -19,3 +11,5 @@ JS_FILES += ${IHP}/static/vendor/morphdom-umd.min.js
1911
JS_FILES += ${IHP}/static/vendor/turbolinks.js
2012
JS_FILES += ${IHP}/static/vendor/turbolinksInstantClick.js
2113
JS_FILES += ${IHP}/static/vendor/turbolinksMorphdom.js
14+
15+
include ${IHP}/Makefile.dist

frameworks/Haskell/ihp/src/default.nix

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)