Skip to content

Commit 1ab8889

Browse files
committed
Rename code to use pbench
1 parent ba7bd2c commit 1ab8889

24 files changed

+31
-31
lines changed

benchmarks/tpc-ds/streams/stream_gen_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"testing"
1111

1212
"github.com/stretchr/testify/assert"
13-
"presto-benchmark/stage"
13+
"pbench/stage"
1414
)
1515

1616
func TestGenerateStreams(t *testing.T) {

cmd/cmp.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package cmd
22

33
import (
44
"github.com/spf13/cobra"
5-
"presto-benchmark/cmp"
5+
"pbench/cmp"
66
)
77

88
var cmpCmd = &cobra.Command{

cmd/gen-config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package cmd
22

33
import (
44
"github.com/spf13/cobra"
5-
genconfig "presto-benchmark/gen-config"
5+
genconfig "pbench/gen-config"
66
)
77

88
var genConfigCmd = &cobra.Command{

cmd/round.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package cmd
22

33
import (
44
"github.com/spf13/cobra"
5-
"presto-benchmark/round"
5+
"pbench/round"
66
)
77

88
// roundCmd represents the round command

cmd/run.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package cmd
33
import (
44
"github.com/spf13/cobra"
55
"os"
6-
"presto-benchmark/run"
6+
"pbench/run"
77
)
88

99
// runCmd represents the run command

gen-config/gen.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"io/fs"
55
"os"
66
"path/filepath"
7-
"presto-benchmark/log"
7+
"pbench/log"
88
"strings"
99
"text/template"
1010
)

gen-config/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"io/fs"
88
"os"
99
"path/filepath"
10-
"presto-benchmark/log"
10+
"pbench/log"
1111

1212
"github.com/spf13/cobra"
1313
)

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module presto-benchmark
1+
module pbench
22

33
go 1.20
44

log/log_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"github.com/rs/zerolog"
88
"net"
99
"os"
10-
"presto-benchmark/log"
10+
"pbench/log"
1111
"strings"
1212
"testing"
1313

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package main
22

33
import (
4-
"presto-benchmark/cmd"
4+
"pbench/cmd"
55
)
66

77
func main() {

pbench

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
33
GO=/usr/local/go/bin/go
44

5-
if [ ! -f $SCRIPT_DIR/presto-benchmark_$(arch) ]; then
5+
if [ ! -f $SCRIPT_DIR/pbench_$(arch) ]; then
66
if [ ! -f $GO ]; then
77
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
88
pkg=go1.21.5.linux-amd64.tar.gz
@@ -15,9 +15,9 @@ if [ ! -f $SCRIPT_DIR/presto-benchmark_$(arch) ]; then
1515
fi
1616
fi
1717
pushd $SCRIPT_DIR > /dev/null
18-
env GOOS=linux GOARCH=amd64 $GO build -o $SCRIPT_DIR/presto-benchmark_x86_64 $SCRIPT_DIR
19-
env GOOS=darwin GOARCH=arm64 $GO build -o $SCRIPT_DIR/presto-benchmark_arm64 $SCRIPT_DIR
18+
env GOOS=linux GOARCH=amd64 $GO build -o $SCRIPT_DIR/pbench_x86_64 $SCRIPT_DIR
19+
env GOOS=darwin GOARCH=arm64 $GO build -o $SCRIPT_DIR/pbench_arm64 $SCRIPT_DIR
2020
popd > /dev/null
2121
fi
2222

23-
$SCRIPT_DIR/presto-benchmark_$(arch) "$@"
23+
$SCRIPT_DIR/pbench_$(arch) "$@"

presto/client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"io"
99
"net/http"
1010
"net/url"
11-
"presto-benchmark/log"
11+
"pbench/log"
1212
"strings"
1313
"time"
1414
)

presto/client_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"context"
55
"errors"
66
"github.com/stretchr/testify/assert"
7-
"presto-benchmark/presto"
7+
"pbench/presto"
88
"strings"
99
"syscall"
1010
"testing"

presto/query_results.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"context"
55
"encoding/json"
66
"errors"
7-
"presto-benchmark/log"
7+
"pbench/log"
88
)
99

1010
type QueryRow []any

round/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"github.com/spf13/cobra"
88
"os"
99
"path/filepath"
10-
"presto-benchmark/log"
10+
"pbench/log"
1111
"regexp"
1212
"strings"
1313
)

run/main.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import (
77
"net/url"
88
"os"
99
"path/filepath"
10-
"presto-benchmark/log"
11-
"presto-benchmark/presto"
12-
"presto-benchmark/stage"
10+
"pbench/log"
11+
"pbench/presto"
12+
"pbench/stage"
1313
"strings"
1414
"time"
1515
)

stage/influx_run_recorder.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
influxapi "github.com/influxdata/influxdb-client-go/v2/api"
88
"github.com/influxdata/influxdb-client-go/v2/api/write"
99
"os"
10-
"presto-benchmark/log"
10+
"pbench/log"
1111
)
1212

1313
type InfluxRunRecorder struct {

stage/map.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"fmt"
66
"os"
77
"path/filepath"
8-
"presto-benchmark/log"
8+
"pbench/log"
99
)
1010

1111
type Map map[string]*Stage

stage/mysql_run_recorder.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"fmt"
99
_ "github.com/go-sql-driver/mysql"
1010
"os"
11-
"presto-benchmark/log"
11+
"pbench/log"
1212
)
1313

1414
var (

stage/pulumi_run_recorder.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"net/http"
1111
"net/url"
1212
"os"
13-
"presto-benchmark/log"
13+
"pbench/log"
1414
"regexp"
1515
"sync/atomic"
1616
"time"

stage/result.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package stage
22

33
import (
44
"github.com/rs/zerolog"
5-
"presto-benchmark/log"
5+
"pbench/log"
66
"time"
77
)
88

stage/stage.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import (
1212
"os"
1313
"os/signal"
1414
"path/filepath"
15-
"presto-benchmark/log"
16-
"presto-benchmark/presto"
15+
"pbench/log"
16+
"pbench/presto"
1717
"sync"
1818
"sync/atomic"
1919
"time"

stage/stage_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"context"
55
"errors"
66
"os"
7-
"presto-benchmark/presto"
7+
"pbench/presto"
88
"syscall"
99
"testing"
1010

stage/stage_utils.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"github.com/rs/zerolog"
99
"os"
1010
"path/filepath"
11-
"presto-benchmark/log"
12-
"presto-benchmark/presto"
11+
"pbench/log"
12+
"pbench/presto"
1313
"strconv"
1414
"time"
1515
)

0 commit comments

Comments
 (0)