-
Notifications
You must be signed in to change notification settings - Fork 8.3k
replace wrk by fortio in our tests #494
Copy link
Copy link
Closed
Milestone
Description
ldemailly-macbookpro:istio ldemailly$ git grep wrk
tests/e2e/tests/mixer/mixer_test.go: wrk *util.Wrk
tests/e2e/tests/mixer/mixer_test.go: if err := t.wrk.Install(); err != nil {
tests/e2e/tests/mixer/mixer_test.go: glog.Error("Failed to install wrk")
tests/e2e/tests/mixer/mixer_test.go: if err := tc.wrk.Run(
tests/e2e/tests/mixer/mixer_test.go: t.Errorf("Failed to run wrk %v", err)
tests/e2e/tests/mixer/mixer_test.go: tc.wrk = &util.Wrk{
tests/e2e/tests/testdata/sample.lua.template: print("=== wrk done")
tests/e2e/tests/testdata/sample.lua.template: print(string.format("=== wrk thread init %d", id))
tests/e2e/tests/testdata/sample.lua.template:-- Handle response per thread (affects wrk performance)
tests/e2e/tests/testdata/sample.lua.template:wrk.method = "GET"
tests/e2e/tests/testdata/sample.lua.template:wrk.headers["Content-Type"] = "application/json"
tests/e2e/util/BUILD: "wrk.go",
tests/e2e/util/wrk.go: wrkDefaultBinaryPath = "/usr/local/bin/wrk"
tests/e2e/util/wrk.go: wrkDefaultURL = "https://storage.googleapis.com/istio-tools/wrk/wrk-4.0.2"
tests/e2e/util/wrk.go: tmpPrefix = "wrk"
tests/e2e/util/wrk.go: wrkURL = flag.String("wrk_url", wrkDefaultURL, "Download URL for wrk")
tests/e2e/util/wrk.go: wrkBinaryPath = flag.String("Wrk_bin_path", wrkDefaultBinaryPath, "Path of installed binary of wrk")
tests/e2e/util/wrk.go:// Wrk is a wrapper around wrk.
tests/e2e/util/wrk.go:// Install installs wrk based on the URL provided if the binary is not already installed.
tests/e2e/util/wrk.go: if _, err := os.Stat(*wrkBinaryPath); os.IsNotExist(err) {
tests/e2e/util/wrk.go: w.BinaryPath = filepath.Join(w.TmpDir, "wrk")
tests/e2e/util/wrk.go: err = HTTPDownload(w.BinaryPath, *wrkURL)
tests/e2e/util/wrk.go: w.BinaryPath = *wrkBinaryPath
tests/e2e/util/wrk.go:// Run runs a wrk command.
tests/e2e/util/wrk.go: glog.Errorf("wrk %s failed", args)
tests/kubeTest.sh:WRK_URL="https://storage.googleapis.com/istio-build-deps/wrk-linux"
tests/kubeTest.sh: wget -q -O "${TEST_DIR}/wrk" "${WRK_URL}" || error_exit "Could not download wrk"
tests/kubeTest.sh: chmod +x "${TEST_DIR}/wrk"
tests/kubeTest.sh: WRK="${TEST_DIR}/wrk"
tests/kubeTest.sh:${WRK} -t1 -c1 -d10s --latency -s ${SCRIPT_DIR}/wrk.lua ${URL}/productpage
tests/kubeTest.sh:${WRK} -t2 -c2 -d10s --latency -s ${SCRIPT_DIR}/wrk.lua ${URL}/productpage
tests/wrk.lua:wrk.method = "GET"
tests/wrk.lua:wrk.headers["Cookie"] = "user=user1; foo=bar"
tests/wrk.lua:wrk.headers["Content-Type"] = "application/json"
ldemailly-macbookpro:istio ldemailly$ cd ~/github/istio/pilot/
ldemailly-macbookpro:pilot ldemailly$ git grep wrk
docker/debug/Dockerfile: wrk
Reactions are currently unavailable