# mongo-bench **Repository Path**: bravoadmin/mongo-bench ## Basic Information - **Project Name**: mongo-bench - **Description**: Fork from scylla-bench - **Primary Language**: Go - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-05-27 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Mongo Bench ## install ```sh go get github.com/im-bravo/mongo-bench cd ~/go/bin ``` ## write ```sh ./mongo-bench -workload uniform -mode write -concurrency 1 -duration 2s -nodes 192.168.58.100 -username root -password example -keyspace your_database -table your_table ``` ## write and check ## write to first node, and read from second node. ```sh ./mongo-bench -workload uniform -mode write_read -concurrency 1 -duration 2s -nodes 192.168.58.100,192.168.58.101 -username root -password example -keyspace your_database -table your_table ``` #### run original golang (development) ```sh go run main.go modes.go workloads.go -workload uniform -mode write -concurrency 1 -duration 2s -nodes 192.168.58.100 -username root -password example -keyspace your_database -table your_table go run main.go modes.go workloads.go -workload uniform -mode write_read -concurrency 1 -duration 2s -nodes 192.168.58.100,192.168.58.101 -username root -password example -keyspace your_database -table your_table ```