Skip to content

Commit d884f5e

Browse files
committed
comparing config languages
0 parents  commit d884f5e

17 files changed

+34589
-0
lines changed

Diff for: .gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/dist
2+
/node_modules

Diff for: .tshy/build.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"extends": "../tsconfig.json",
3+
"compilerOptions": {
4+
"rootDir": "../src",
5+
"module": "nodenext",
6+
"moduleResolution": "nodenext"
7+
}
8+
}

Diff for: .tshy/esm.json

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"extends": "./build.json",
3+
"include": [
4+
"../src/**/*.ts",
5+
"../src/**/*.mts",
6+
"../src/**/*.tsx"
7+
],
8+
"exclude": [],
9+
"compilerOptions": {
10+
"outDir": "../.tshy-build/esm"
11+
}
12+
}

Diff for: README.md

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# config language test
2+
3+
Helping us decide which implementation to use for vlt configs.
4+
5+
## USAGE
6+
7+
```
8+
npm it
9+
```
10+
11+
Output goes in `./output`, benchmarks printed to stdout.
12+
13+
## Results
14+
15+
```
16+
bigger number is better, ops / ms
17+
18+
# @iarna/toml
19+
> stringify 0.456
20+
> parse 0.286
21+
22+
# @ltd/j-toml
23+
> stringify 0.032
24+
> parse 0.238
25+
26+
# smol-toml
27+
> stringify 1.024
28+
> parse 0.479
29+
30+
# yaml
31+
> stringify 0.099
32+
> parse 0.037
33+
34+
# js-yaml
35+
> stringify 0.258
36+
> parse 0.439
37+
38+
# polite-json
39+
> stringify 3.228
40+
> parse 2.115
41+
42+
# JSON (the built-in one)
43+
> stringify 3.232
44+
> parse 2.128
45+
46+
# ini
47+
> stringify 0.411
48+
> parse 0.325
49+
```

0 commit comments

Comments
 (0)