Test: use shadowsocks-rust for ss benchmark
This commit is contained in:
parent
7d20097465
commit
661c417fce
2 changed files with 12 additions and 9 deletions
|
@ -27,11 +27,12 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
ImageShadowsocks = "mritd/shadowsocks:latest"
|
ImageShadowsocks = "mritd/shadowsocks:latest"
|
||||||
ImageVmess = "v2fly/v2fly-core:latest"
|
ImageShadowsocksRust = "ghcr.io/shadowsocks/ssserver-rust:latest"
|
||||||
ImageTrojan = "trojangfw/trojan:latest"
|
ImageVmess = "v2fly/v2fly-core:latest"
|
||||||
ImageSnell = "icpz/snell-server:latest"
|
ImageTrojan = "trojangfw/trojan:latest"
|
||||||
ImageXray = "teddysun/xray:latest"
|
ImageSnell = "icpz/snell-server:latest"
|
||||||
|
ImageXray = "teddysun/xray:latest"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -12,8 +12,9 @@ import (
|
||||||
|
|
||||||
func TestClash_Shadowsocks(t *testing.T) {
|
func TestClash_Shadowsocks(t *testing.T) {
|
||||||
cfg := &container.Config{
|
cfg := &container.Config{
|
||||||
Image: ImageShadowsocks,
|
Image: ImageShadowsocksRust,
|
||||||
Env: []string{"SS_MODULE=ss-server", "SS_CONFIG=-s 0.0.0.0 -u -v -p 10002 -m chacha20-ietf-poly1305 -k FzcLbKs2dY9mhL"},
|
Entrypoint: []string{"ssserver"},
|
||||||
|
Cmd: []string{"-s", "0.0.0.0:10002", "-m", "chacha20-ietf-poly1305", "-k", "FzcLbKs2dY9mhL", "-U"},
|
||||||
ExposedPorts: defaultExposedPorts,
|
ExposedPorts: defaultExposedPorts,
|
||||||
}
|
}
|
||||||
hostCfg := &container.HostConfig{
|
hostCfg := &container.HostConfig{
|
||||||
|
@ -173,8 +174,9 @@ func TestClash_ShadowsocksV2RayPlugin(t *testing.T) {
|
||||||
|
|
||||||
func Benchmark_Shadowsocks(b *testing.B) {
|
func Benchmark_Shadowsocks(b *testing.B) {
|
||||||
cfg := &container.Config{
|
cfg := &container.Config{
|
||||||
Image: ImageShadowsocks,
|
Image: ImageShadowsocksRust,
|
||||||
Env: []string{"SS_MODULE=ss-server", "SS_CONFIG=-s 0.0.0.0 -u -v -p 10002 -m aes-256-gcm -k FzcLbKs2dY9mhL"},
|
Entrypoint: []string{"ssserver"},
|
||||||
|
Cmd: []string{"-s", "0.0.0.0:10002", "-m", "aes-256-gcm", "-k", "FzcLbKs2dY9mhL", "-U"},
|
||||||
ExposedPorts: defaultExposedPorts,
|
ExposedPorts: defaultExposedPorts,
|
||||||
}
|
}
|
||||||
hostCfg := &container.HostConfig{
|
hostCfg := &container.HostConfig{
|
||||||
|
|
Loading…
Reference in a new issue