redis/redis-rest-storage-performance.rb
############################################################################################
# Sets the limit to enter the slowlog for a command to 1 microsecond.
# Resets the slowlog
# Executes the rest-storage call
# Gets the slowlog
############################################################################################
Sets the limit to enter the slowlog for a command to 1 microsecond.
Resets the slowlog
Executes the rest-storage call
Gets the slowlog
Sets the limit to enter the slowlog for a command to 1 microsecond . Resets the slowlog Executes the rest - storage call Gets the slowlog
def execute_rest_storage_and_read_slowlog(url)
	`redis-cli config set slowlog-log-slower-than 1`
	`redis-cli slowlog reset`
	`curl -s #{url} > /dev/null`
	slowlog = `redis-cli slowlog get 128`
	lines = slowlog.split(/\n+/)
	return lines
end
def execute_rest_storage_and_read_slowlog ( url ) ` redis-cli config set slowlog-log-slower-than 1 ` ` redis-cli slowlog reset ` ` curl -s  #{ url }  > /dev/null ` slowlog = ` redis-cli slowlog get 128 ` lines = slowlog . split ( / \n + / ) return lines end
Sets the limit to enter the slowlog for a command to 1 microsecond.
Sets the limit to enter the slowlog for a command to 1 microsecond .
url