1. A performance optimization system to optimize processing in a streaming system, the performance optimization system comprising: at least one processor; a data storage to store a dataflow directed acyclic graph comprising nodes and edges connecting the nodes, wherein the nodes process tuples and the edges send the tuples from one node to another node, wherein the nodes comprise producers generating the tuples and consumers receiving the tuples, a parameter determination module executed by the at least one processor, wherein for each node of the nodes the parameter determination module is to: determine a parameter that includes a degree of parallelism (dop) for each of the consumers; and determine, for each of the producers, whether input latency of the tuples is smaller than a processing time of the tuples; in response to a determination that input latency of the tuples is smaller than the processing time of the tuples, determine another parameter for the node that comprises a batch size; and in response to a determination that input latency of the tuples is not smaller than the processing time of the tuples, not determining the determining the batch size; and a parameter execution module to provide the parameters for the nodes to the streaming system, wherein the streaming system is to execute a dataflow for the dataflow directed acyclic graph according to the parameters for the nodes.