Skip to content

Commit e2151b1

Browse files
authored
Merge pull request #136 from lpgauth/chore/upgrade-deps
Upgrade foil to 0.1.6 and knot to 0.1.1
2 parents 0712fd6 + 994cec4 commit e2151b1

9 files changed

Lines changed: 9 additions & 196 deletions

File tree

Makefile

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
1-
CACHEGRIND=qcachegrind
21
REBAR3=$(shell which rebar3)
32
ifeq ($(REBAR3),)
43
REBAR3=./bin/rebar3
54
endif
65

76
all: compile
87

9-
bench:
10-
@echo "Benchmarking..."
11-
@$(REBAR3) as bench compile
12-
@./bin/bench.sh
13-
148
clean:
159
@echo "Running rebar3 clean..."
1610
@$(REBAR3) clean -a
@@ -27,17 +21,10 @@ eunit:
2721
@echo "Running rebar3 eunit..."
2822
@$(REBAR3) do eunit -cv, cover -v
2923

30-
profile:
31-
@echo "Profiling..."
32-
@$(REBAR3) as profile compile
33-
@./bin/profile.sh
34-
@_build/profile/lib/fprofx/erlgrindx -p fprofx.analysis
35-
@$(CACHEGRIND) fprofx.cgrind
36-
3724
test: xref eunit dialyzer
3825

3926
xref:
4027
@echo "Running rebar3 xref..."
4128
@$(REBAR3) xref
4229

43-
.PHONY: bench clean compile dialyzer eunit profile xref
30+
.PHONY: clean compile dialyzer eunit xref

README.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -302,21 +302,6 @@ make eunit
302302
make xref
303303
```
304304

305-
## Performance testing
306-
307-
To run performance testing targets you must first start the server:
308-
309-
```
310-
./bin/server.sh
311-
```
312-
313-
Then you can run the `bench` or `profile` target:
314-
315-
```makefile
316-
make bench
317-
make profile
318-
```
319-
320305
## Clients
321306

322307
<table width="100%">

bin/bench.sh

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

bin/profile.sh

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

bin/server.sh

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

rebar.config

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
]}.
66

77
{deps, [
8-
{foil, "0.1.4"},
8+
{foil, "0.1.6"},
9+
{knot, "0.1.1"},
910
{metal, "0.1.2"},
10-
{knot, "0.1.0"},
1111
{telemetry, "1.4.2"}
1212
]}.
1313

@@ -32,13 +32,6 @@
3232
]}.
3333

3434
{profiles, [
35-
{bench, [
36-
{deps, [
37-
{timing,
38-
{git, "https://github.com/lpgauth/timing.git", {tag, "0.1.3"}}}
39-
]},
40-
{extra_src_dirs, ["test"]}
41-
]},
4235
{compile, [
4336
{erl_opts, [
4437
warnings_as_errors,
@@ -51,13 +44,6 @@
5144
warn_unused_import,
5245
warn_unused_vars
5346
]}
54-
]},
55-
{profile, [
56-
{deps, [
57-
{fprofx,
58-
{git, "https://github.com/lpgauth/fprofx.git", {branch, "otp_19"}}}
59-
]},
60-
{extra_src_dirs, ["test"]}
6147
]}
6248
]}.
6349

rebar.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{"1.2.0",
2-
[{<<"foil">>,{pkg,<<"foil">>,<<"0.1.4">>},0},
3-
{<<"knot">>,{pkg,<<"knot">>,<<"0.1.0">>},0},
2+
[{<<"foil">>,{pkg,<<"foil">>,<<"0.1.6">>},0},
3+
{<<"knot">>,{pkg,<<"knot">>,<<"0.1.1">>},0},
44
{<<"metal">>,{pkg,<<"metal">>,<<"0.1.2">>},0},
55
{<<"telemetry">>,{pkg,<<"telemetry">>,<<"1.4.2">>},0}]}.
66
[
77
{pkg_hash,[
8-
{<<"foil">>, <<"1B786A2CC3E81496F98F799DF23AA24065253A94032AB79E5D60AED5423850AE">>},
9-
{<<"knot">>, <<"62CACC2CD9E2D50373EAFAC7C26A4286EF22C4590CBBF42FC81B4B0F497CC87D">>},
8+
{<<"foil">>, <<"31A9048E8EC6E8AC951ED3C4E4EB8F549465920C70F19E92CD9FC8A6867E7253">>},
9+
{<<"knot">>, <<"F641193F8F29DF7D72E0DDF5BCCED87C9F391276337A1E8ACD636B9E5B68160C">>},
1010
{<<"metal">>, <<"7501F14B075380F829498C4CE605643D6C7F0C55F60EBFCFBF694C33A558DF98">>},
1111
{<<"telemetry">>, <<"A0CB522801DFFB1C49FE6E30561BADFFC7B6D0E180DB1300DF759FAA22062855">>}]},
1212
{pkg_hash_ext,[
13-
{<<"foil">>, <<"4B0C51432A13740E5D74289C19A584A02B1BA02558AA9002665900EC61260E1B">>},
14-
{<<"knot">>, <<"5659015314767F69BD95D88B0AEDF6A65DCBEF3E9AFE49172D0429B18DB89584">>},
13+
{<<"foil">>, <<"8D34B12D712FFB30AD9E192F57885ABB1A61510CD3D9F6AA44470510A50B979E">>},
14+
{<<"knot">>, <<"E3A575F4400916391559999777F64CEC22156FC639E74BD87CFF96FFB79EF451">>},
1515
{<<"metal">>, <<"CAC84E5CF2875B56E68874F3F0B3D598AF3EC30397EC2151D5C81C408961E6E4">>},
1616
{<<"telemetry">>, <<"928F6495066506077862C0D1646609EED891A4326BEE3126BA54B60AF61FEBB1">>}]}
1717
].

test/shackle_bench.erl

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

test/shackle_profile.erl

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

0 commit comments

Comments
 (0)