Skip to content

Commit 9cebf6e

Browse files
committed
refactor test
Signed-off-by: Coleen Iona Quadros <coleen.quadros27@gmail.com>
1 parent 5f58001 commit 9cebf6e

File tree

4 files changed

+246
-14
lines changed

4 files changed

+246
-14
lines changed

benchmark-inhibit-main.txt

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
goos: darwin
2+
goarch: arm64
3+
pkg: github.com/prometheus/alertmanager/inhibit
4+
cpu: Apple M1 Pro
5+
BenchmarkMutes/1_inhibition_rule,_1_inhibiting_alert-10 1290090 921.9 ns/op 488 B/op 10 allocs/op
6+
BenchmarkMutes/1_inhibition_rule,_1_inhibiting_alert-10 1000000 1008 ns/op 488 B/op 10 allocs/op
7+
BenchmarkMutes/1_inhibition_rule,_1_inhibiting_alert-10 1293242 926.2 ns/op 488 B/op 10 allocs/op
8+
BenchmarkMutes/1_inhibition_rule,_1_inhibiting_alert-10 1281066 925.3 ns/op 488 B/op 10 allocs/op
9+
BenchmarkMutes/1_inhibition_rule,_1_inhibiting_alert-10 1246281 938.9 ns/op 488 B/op 10 allocs/op
10+
BenchmarkMutes/1_inhibition_rule,_1_inhibiting_alert-10 1286312 925.1 ns/op 488 B/op 10 allocs/op
11+
BenchmarkMutes/1_inhibition_rule,_1_inhibiting_alert-10 1265293 929.1 ns/op 488 B/op 10 allocs/op
12+
BenchmarkMutes/10_inhibition_rules,_1_inhibiting_alert-10 1168930 974.9 ns/op 488 B/op 10 allocs/op
13+
BenchmarkMutes/10_inhibition_rules,_1_inhibiting_alert-10 1271968 934.3 ns/op 488 B/op 10 allocs/op
14+
BenchmarkMutes/10_inhibition_rules,_1_inhibiting_alert-10 1302008 916.9 ns/op 488 B/op 10 allocs/op
15+
BenchmarkMutes/10_inhibition_rules,_1_inhibiting_alert-10 1249378 945.2 ns/op 488 B/op 10 allocs/op
16+
BenchmarkMutes/10_inhibition_rules,_1_inhibiting_alert-10 1300340 922.8 ns/op 488 B/op 10 allocs/op
17+
BenchmarkMutes/10_inhibition_rules,_1_inhibiting_alert-10 1314135 914.4 ns/op 488 B/op 10 allocs/op
18+
BenchmarkMutes/10_inhibition_rules,_1_inhibiting_alert-10 1289266 925.6 ns/op 488 B/op 10 allocs/op
19+
BenchmarkMutes/100_inhibition_rules,_1_inhibiting_alert-10 1257738 945.8 ns/op 488 B/op 10 allocs/op
20+
BenchmarkMutes/100_inhibition_rules,_1_inhibiting_alert-10 1258866 945.8 ns/op 488 B/op 10 allocs/op
21+
BenchmarkMutes/100_inhibition_rules,_1_inhibiting_alert-10 1239567 955.2 ns/op 488 B/op 10 allocs/op
22+
BenchmarkMutes/100_inhibition_rules,_1_inhibiting_alert-10 912206 1119 ns/op 488 B/op 10 allocs/op
23+
BenchmarkMutes/100_inhibition_rules,_1_inhibiting_alert-10 1239640 947.0 ns/op 488 B/op 10 allocs/op
24+
BenchmarkMutes/100_inhibition_rules,_1_inhibiting_alert-10 1237909 945.9 ns/op 488 B/op 10 allocs/op
25+
BenchmarkMutes/100_inhibition_rules,_1_inhibiting_alert-10 1276261 917.5 ns/op 488 B/op 10 allocs/op
26+
BenchmarkMutes/1000_inhibition_rules,_1_inhibiting_alert-10 1170081 1002 ns/op 488 B/op 10 allocs/op
27+
BenchmarkMutes/1000_inhibition_rules,_1_inhibiting_alert-10 1184400 998.5 ns/op 488 B/op 10 allocs/op
28+
BenchmarkMutes/1000_inhibition_rules,_1_inhibiting_alert-10 1162742 1001 ns/op 488 B/op 10 allocs/op
29+
BenchmarkMutes/1000_inhibition_rules,_1_inhibiting_alert-10 1161342 1005 ns/op 488 B/op 10 allocs/op
30+
BenchmarkMutes/1000_inhibition_rules,_1_inhibiting_alert-10 1168441 1010 ns/op 488 B/op 10 allocs/op
31+
BenchmarkMutes/1000_inhibition_rules,_1_inhibiting_alert-10 1167801 1003 ns/op 488 B/op 10 allocs/op
32+
BenchmarkMutes/1000_inhibition_rules,_1_inhibiting_alert-10 1214122 981.3 ns/op 488 B/op 10 allocs/op
33+
BenchmarkMutes/10000_inhibition_rules,_1_inhibiting_alert-10 1000000 1002 ns/op 489 B/op 10 allocs/op
34+
BenchmarkMutes/10000_inhibition_rules,_1_inhibiting_alert-10 1000000 1002 ns/op 489 B/op 10 allocs/op
35+
BenchmarkMutes/10000_inhibition_rules,_1_inhibiting_alert-10 1000000 1022 ns/op 489 B/op 10 allocs/op
36+
BenchmarkMutes/10000_inhibition_rules,_1_inhibiting_alert-10 910570 1370 ns/op 489 B/op 10 allocs/op
37+
BenchmarkMutes/10000_inhibition_rules,_1_inhibiting_alert-10 827874 1370 ns/op 489 B/op 10 allocs/op
38+
BenchmarkMutes/10000_inhibition_rules,_1_inhibiting_alert-10 912037 1167 ns/op 489 B/op 10 allocs/op
39+
BenchmarkMutes/10000_inhibition_rules,_1_inhibiting_alert-10 1000000 1001 ns/op 489 B/op 10 allocs/op
40+
BenchmarkMutes/1_inhibition_rule,_10_inhibiting_alerts-10 1235238 932.8 ns/op 488 B/op 10 allocs/op
41+
BenchmarkMutes/1_inhibition_rule,_10_inhibiting_alerts-10 1244066 935.0 ns/op 488 B/op 10 allocs/op
42+
BenchmarkMutes/1_inhibition_rule,_10_inhibiting_alerts-10 1250766 931.9 ns/op 488 B/op 10 allocs/op
43+
BenchmarkMutes/1_inhibition_rule,_10_inhibiting_alerts-10 1220690 972.4 ns/op 488 B/op 10 allocs/op
44+
BenchmarkMutes/1_inhibition_rule,_10_inhibiting_alerts-10 1176918 969.8 ns/op 488 B/op 10 allocs/op
45+
BenchmarkMutes/1_inhibition_rule,_10_inhibiting_alerts-10 1189766 974.6 ns/op 488 B/op 10 allocs/op
46+
BenchmarkMutes/1_inhibition_rule,_10_inhibiting_alerts-10 1225154 968.5 ns/op 488 B/op 10 allocs/op
47+
BenchmarkMutes/1_inhibition_rule,_100_inhibiting_alerts-10 1211809 963.4 ns/op 488 B/op 10 allocs/op
48+
BenchmarkMutes/1_inhibition_rule,_100_inhibiting_alerts-10 1215195 964.5 ns/op 488 B/op 10 allocs/op
49+
BenchmarkMutes/1_inhibition_rule,_100_inhibiting_alerts-10 1197037 967.5 ns/op 488 B/op 10 allocs/op
50+
BenchmarkMutes/1_inhibition_rule,_100_inhibiting_alerts-10 1108800 1048 ns/op 488 B/op 10 allocs/op
51+
BenchmarkMutes/1_inhibition_rule,_100_inhibiting_alerts-10 1182540 978.9 ns/op 488 B/op 10 allocs/op
52+
BenchmarkMutes/1_inhibition_rule,_100_inhibiting_alerts-10 1185997 980.2 ns/op 488 B/op 10 allocs/op
53+
BenchmarkMutes/1_inhibition_rule,_100_inhibiting_alerts-10 1203541 974.9 ns/op 488 B/op 10 allocs/op
54+
BenchmarkMutes/1_inhibition_rule,_1000_inhibiting_alerts-10 1202373 977.1 ns/op 488 B/op 10 allocs/op
55+
BenchmarkMutes/1_inhibition_rule,_1000_inhibiting_alerts-10 1182801 980.9 ns/op 488 B/op 10 allocs/op
56+
BenchmarkMutes/1_inhibition_rule,_1000_inhibiting_alerts-10 1175869 984.1 ns/op 488 B/op 10 allocs/op
57+
BenchmarkMutes/1_inhibition_rule,_1000_inhibiting_alerts-10 1193029 980.5 ns/op 488 B/op 10 allocs/op
58+
BenchmarkMutes/1_inhibition_rule,_1000_inhibiting_alerts-10 1203718 974.8 ns/op 488 B/op 10 allocs/op
59+
BenchmarkMutes/1_inhibition_rule,_1000_inhibiting_alerts-10 1194072 980.3 ns/op 488 B/op 10 allocs/op
60+
BenchmarkMutes/1_inhibition_rule,_1000_inhibiting_alerts-10 1180850 983.8 ns/op 488 B/op 10 allocs/op
61+
BenchmarkMutes/1_inhibition_rule,_10000_inhibiting_alerts-10 1226982 938.5 ns/op 488 B/op 10 allocs/op
62+
BenchmarkMutes/1_inhibition_rule,_10000_inhibiting_alerts-10 1231732 940.9 ns/op 488 B/op 10 allocs/op
63+
BenchmarkMutes/1_inhibition_rule,_10000_inhibiting_alerts-10 1239836 937.5 ns/op 488 B/op 10 allocs/op
64+
BenchmarkMutes/1_inhibition_rule,_10000_inhibiting_alerts-10 1252224 937.0 ns/op 488 B/op 10 allocs/op
65+
BenchmarkMutes/1_inhibition_rule,_10000_inhibiting_alerts-10 1264473 930.6 ns/op 488 B/op 10 allocs/op
66+
BenchmarkMutes/1_inhibition_rule,_10000_inhibiting_alerts-10 1196790 958.3 ns/op 488 B/op 10 allocs/op
67+
BenchmarkMutes/1_inhibition_rule,_10000_inhibiting_alerts-10 1247950 934.9 ns/op 488 B/op 10 allocs/op
68+
BenchmarkMutes/100_inhibition_rules,_1000_inhibiting_alerts-10 1285146 900.5 ns/op 488 B/op 10 allocs/op
69+
BenchmarkMutes/100_inhibition_rules,_1000_inhibiting_alerts-10 1278505 903.2 ns/op 488 B/op 10 allocs/op
70+
BenchmarkMutes/100_inhibition_rules,_1000_inhibiting_alerts-10 1307764 895.8 ns/op 488 B/op 10 allocs/op
71+
BenchmarkMutes/100_inhibition_rules,_1000_inhibiting_alerts-10 1291483 899.3 ns/op 488 B/op 10 allocs/op
72+
BenchmarkMutes/100_inhibition_rules,_1000_inhibiting_alerts-10 1303916 898.7 ns/op 488 B/op 10 allocs/op
73+
BenchmarkMutes/100_inhibition_rules,_1000_inhibiting_alerts-10 1297874 900.6 ns/op 488 B/op 10 allocs/op
74+
BenchmarkMutes/100_inhibition_rules,_1000_inhibiting_alerts-10 1279704 903.7 ns/op 488 B/op 10 allocs/op
75+
BenchmarkMutes/10_inhibition_rules,_last_rule_matches-10 466263 2539 ns/op 472 B/op 10 allocs/op
76+
BenchmarkMutes/10_inhibition_rules,_last_rule_matches-10 466467 2530 ns/op 472 B/op 10 allocs/op
77+
BenchmarkMutes/10_inhibition_rules,_last_rule_matches-10 468412 2521 ns/op 472 B/op 10 allocs/op
78+
BenchmarkMutes/10_inhibition_rules,_last_rule_matches-10 463185 2545 ns/op 472 B/op 10 allocs/op
79+
BenchmarkMutes/10_inhibition_rules,_last_rule_matches-10 466969 2530 ns/op 472 B/op 10 allocs/op
80+
BenchmarkMutes/10_inhibition_rules,_last_rule_matches-10 467034 2531 ns/op 472 B/op 10 allocs/op
81+
BenchmarkMutes/10_inhibition_rules,_last_rule_matches-10 466386 2531 ns/op 472 B/op 10 allocs/op
82+
BenchmarkMutes/100_inhibition_rules,_last_rule_matches-10 58227 18508 ns/op 472 B/op 10 allocs/op
83+
BenchmarkMutes/100_inhibition_rules,_last_rule_matches-10 58345 18310 ns/op 472 B/op 10 allocs/op
84+
BenchmarkMutes/100_inhibition_rules,_last_rule_matches-10 58413 18250 ns/op 472 B/op 10 allocs/op
85+
BenchmarkMutes/100_inhibition_rules,_last_rule_matches-10 58448 18307 ns/op 472 B/op 10 allocs/op
86+
BenchmarkMutes/100_inhibition_rules,_last_rule_matches-10 57724 18468 ns/op 472 B/op 10 allocs/op
87+
BenchmarkMutes/100_inhibition_rules,_last_rule_matches-10 57708 18506 ns/op 472 B/op 10 allocs/op
88+
BenchmarkMutes/100_inhibition_rules,_last_rule_matches-10 57783 18369 ns/op 472 B/op 10 allocs/op
89+
BenchmarkMutes/1000_inhibition_rules,_last_rule_matches-10 6690 175754 ns/op 472 B/op 10 allocs/op
90+
BenchmarkMutes/1000_inhibition_rules,_last_rule_matches-10 6649 175801 ns/op 472 B/op 10 allocs/op
91+
BenchmarkMutes/1000_inhibition_rules,_last_rule_matches-10 6662 176100 ns/op 472 B/op 10 allocs/op
92+
BenchmarkMutes/1000_inhibition_rules,_last_rule_matches-10 6577 177275 ns/op 472 B/op 10 allocs/op
93+
BenchmarkMutes/1000_inhibition_rules,_last_rule_matches-10 6667 175925 ns/op 472 B/op 10 allocs/op
94+
BenchmarkMutes/1000_inhibition_rules,_last_rule_matches-10 6580 177391 ns/op 472 B/op 10 allocs/op
95+
BenchmarkMutes/1000_inhibition_rules,_last_rule_matches-10 6720 174829 ns/op 472 B/op 10 allocs/op
96+
BenchmarkMutes/10000_inhibition_rules,_last_rule_matches-10 590 1875577 ns/op 475 B/op 10 allocs/op
97+
BenchmarkMutes/10000_inhibition_rules,_last_rule_matches-10 585 1832137 ns/op 475 B/op 10 allocs/op
98+
BenchmarkMutes/10000_inhibition_rules,_last_rule_matches-10 602 1787558 ns/op 475 B/op 10 allocs/op
99+
BenchmarkMutes/10000_inhibition_rules,_last_rule_matches-10 585 1819969 ns/op 476 B/op 10 allocs/op
100+
BenchmarkMutes/10000_inhibition_rules,_last_rule_matches-10 576 1827837 ns/op 476 B/op 10 allocs/op
101+
BenchmarkMutes/10000_inhibition_rules,_last_rule_matches-10 583 1814397 ns/op 476 B/op 10 allocs/op
102+
BenchmarkMutes/10000_inhibition_rules,_last_rule_matches-10 584 1794827 ns/op 476 B/op 10 allocs/op
103+
PASS
104+
ok github.com/prometheus/alertmanager/inhibit 212.518s

0 commit comments

Comments
 (0)