Skip to content

Commit 6489558

Browse files
committed
bench, docs, fix double free bug
1 parent 85fd18b commit 6489558

25 files changed

+187
-22
lines changed

benchmarks/Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
SHELL=/bin/bash
2+
3+
dates.png: ./dates/results.json Makefile
4+
observable-prerender @asg017/hyperfine-benchmark-viz1 chart \
5+
--redefine=width:900 \
6+
--width 900 \
7+
--redefine-file=data:json:$< \
8+
--redefine-file=highlight:json:<(echo '["./sqlite-regex.sh"]') \
9+
'--redefine=compareTo:./sqlite-regex.sh' \
10+
'--redefine=title:Regex match "YYYY-MM-DD" dates in a 200k row, 8MB table.' \
11+
'--redefine=footer:sqlite-regex version 0.0.1, ran on a 8GB RAM Macbook' \
12+
-o $@

benchmarks/dates.png

29.6 KB
Loading
File renamed without changes.
File renamed without changes.

benchmarks/dates/bench-dates.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
hyperfine --warmup 10 --export-json=results.json \
3+
'./sqlite-regex.sh' \
4+
'./regexp.sh' \
5+
'./sqlean-re.sh'
File renamed without changes.

benchmarks/dates/results.json

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
{
2+
"results": [
3+
{
4+
"command": "./sqlite-regex.sh",
5+
"mean": 0.054372564830784335,
6+
"stddev": 0.0005315813126198082,
7+
"median": 0.054373242870000005,
8+
"user": 0.04359116519607843,
9+
"system": 0.005847851078431375,
10+
"min": 0.05331200287000001,
11+
"max": 0.055514036870000005,
12+
"times": [
13+
0.055139827870000005,
14+
0.05409116287,
15+
0.05445735787000001,
16+
0.053842791870000004,
17+
0.05448646387,
18+
0.055514036870000005,
19+
0.05400693587,
20+
0.055154393870000006,
21+
0.05416289187000001,
22+
0.05395684287000001,
23+
0.054107605870000006,
24+
0.054620449870000004,
25+
0.05519709887,
26+
0.05398021787000001,
27+
0.054373242870000005,
28+
0.05487026887,
29+
0.053872738870000006,
30+
0.05497840687,
31+
0.05343802787,
32+
0.053459206870000005,
33+
0.054260989870000005,
34+
0.053631891870000004,
35+
0.054111958870000004,
36+
0.05395722287,
37+
0.05451430587,
38+
0.053698185870000005,
39+
0.05438437687000001,
40+
0.055285750870000004,
41+
0.054758866870000006,
42+
0.05426507387000001,
43+
0.05491254887,
44+
0.05534420587,
45+
0.05383498087000001,
46+
0.05445113287,
47+
0.054479982870000006,
48+
0.05331200287000001,
49+
0.05429368687,
50+
0.054001591870000004,
51+
0.05479302087000001,
52+
0.05374784187000001,
53+
0.054810163870000005,
54+
0.054740056870000005,
55+
0.05444112887,
56+
0.054216403870000006,
57+
0.05425796587,
58+
0.055065487870000006,
59+
0.054823834870000004,
60+
0.05469258987,
61+
0.053751407870000004,
62+
0.05397611387,
63+
0.05447606287
64+
]
65+
},
66+
{
67+
"command": "./regexp.sh",
68+
"mean": 0.12548822508739133,
69+
"stddev": 0.0011727640357036106,
70+
"median": 0.12519553887,
71+
"user": 0.11441889239130433,
72+
"system": 0.005927785434782608,
73+
"min": 0.12384031187,
74+
"max": 0.12927648487,
75+
"times": [
76+
0.12521587087,
77+
0.12384031187,
78+
0.12480195587000001,
79+
0.12549902687,
80+
0.12601430687,
81+
0.12481248987000002,
82+
0.12519553887,
83+
0.12638769587,
84+
0.12604039187000002,
85+
0.12426679487,
86+
0.12513222387,
87+
0.12517647987,
88+
0.12433811687000002,
89+
0.12591836487000002,
90+
0.12578433887,
91+
0.12568511887,
92+
0.12763933087,
93+
0.12493951187000002,
94+
0.12609870087,
95+
0.12927648487,
96+
0.12427449287,
97+
0.12492496587000002,
98+
0.12496666287
99+
]
100+
},
101+
{
102+
"command": "./sqlean-re.sh",
103+
"mean": 0.35747110417000005,
104+
"stddev": 0.019674148400044274,
105+
"median": 0.34542798687,
106+
"user": 0.3338626749999999,
107+
"system": 0.006953555,
108+
"min": 0.34252614387,
109+
"max": 0.39998933287,
110+
"times": [
111+
0.36573534187,
112+
0.36690300387,
113+
0.34263379087,
114+
0.34604847087,
115+
0.37801525287,
116+
0.39998933287,
117+
0.34252614387,
118+
0.34459688187,
119+
0.34480750287,
120+
0.34345531987
121+
]
122+
}
123+
]
124+
}
File renamed without changes.
File renamed without changes.

benchmarks/new/bench-dates.sh

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

0 commit comments

Comments
 (0)