mirror of
https://github.com/cirruslabs/tart.git
synced 2026-10-02 20:21:50 +02:00
* Introduce Golang-based benchmarking utility * benchmark fio: properly configure logger level * benchmark: properly terminate on Ctrl+C when initializing/running Tart * benchmark(fio): increase runtime to 30 seconds * benchmark(fio): IOPS are already per second * benchmark(fio): --numjobs 1 --iodepth 1 --end_fsync 1 * benchmark(README.md): add results
21 lines
464 B
Go
21 lines
464 B
Go
package local_test
|
|
|
|
import (
|
|
"context"
|
|
"github.com/cirruslabs/tart/benchmark/internal/executor/local"
|
|
"github.com/stretchr/testify/require"
|
|
"go.uber.org/zap"
|
|
"testing"
|
|
)
|
|
|
|
func TestLocal(t *testing.T) {
|
|
local, err := local.New(zap.NewNop())
|
|
require.NoError(t, err)
|
|
|
|
output, err := local.Run(context.Background(), "echo \"this is a test\"")
|
|
require.NoError(t, err)
|
|
require.Equal(t, "this is a test\n", string(output))
|
|
|
|
require.NoError(t, local.Close())
|
|
}
|