Skip to main content
QUICK REVIEW

[Paper Review] On measuring performances of C-SPARQL and CQELS

Xiangnan Ren, Houda Khrouf|arXiv (Cornell University)|Nov 24, 2016
Semantic Web and OntologiesComputer Science6 references7 citations
TL;DR

This paper evaluates the performance of two leading RDF Stream Processing engines, C-SPARQL and CQELS, under varying workloads including stream rate, window size, number of streams, and data size. It reveals that C-SPARQL excels in complex, multi-stream queries due to its time-driven mechanism, while CQELS outperforms C-SPARQL in static data processing due to efficient dictionary encoding and data-driven execution, with execution times differing by up to 27x for certain queries.

ABSTRACT

To cope with the massive growth of semantic data streams, several RDF Stream Processing (RSP) engines have been implemented. The efficiency of their throughput, latency and memory consumption can be evaluated using available benchmarks such as LSBench and City- Bench. Nevertheless, these benchmarks lack an in-depth performance evaluation as some measurement metrics have not been considered. The main goal of this paper is to analyze the performance of two popular RSP engines, namely C-SPARQL and CQELS, when varying a set of performance metrics. More precisely, we evaluate the impact of stream rate, number of streams and window size on execution time as well as on memory consumption.

Motivation & Objective

  • To conduct a comprehensive performance evaluation of C-SPARQL and CQELS, two prominent RDF Stream Processing (RSP) engines.
  • To identify the impact of key system parameters—stream rate, window size, number of streams, number of triples, and static data size—on execution time and memory consumption.
  • To provide a fair, in-depth comparison by accounting for differences in execution mechanisms (time-driven vs. data-driven) and ensuring result correctness.
  • To clarify the strengths and limitations of each engine in practical deployment scenarios, especially concerning query complexity and data characteristics.

Proposed method

  • Designed a custom data generator to control stream size, content, and structure for reproducible and correct evaluation.
  • Implemented a set of five SPARQL queries with varying complexity to test different workloads and query patterns.
  • Measured execution time per triple and memory consumption under controlled conditions across multiple configurations.
  • Used a warm-up phase to stabilize engine behavior before formal measurements.
  • Applied a normalized execution time metric ($t = T/N$) to enable fair comparison despite differing execution strategies.
  • Conducted experiments on both C-SPARQL (time-driven) and CQELS (data-driven) engines under identical query and data conditions.

Experimental results

Research questions

  • RQ1How does stream rate affect the execution time and memory consumption of C-SPARQL and CQELS?
  • RQ2What is the impact of window size on query performance in time-driven (C-SPARQL) and data-driven (CQELS) RSP engines?
  • RQ3How does the number of concurrent streams influence performance and memory usage in both engines?
  • RQ4How do static data size and data volume affect scalability and execution efficiency?
  • RQ5In what query scenarios does CQELS outperform C-SPARQL, and vice versa?

Key findings

  • C-SPARQL achieves an average execution time of 0.018 ms per triple for query $Q_1$, significantly outperforming CQELS, which takes 0.169 ms per triple.
  • For complex queries like $Q_3$, C-SPARQL maintains stable performance with 0.040 ms per triple, while CQELS degrades due to repeated matching checks over the entire window.
  • CQELS is nearly 27 times faster than C-SPARQL for query $Q_6$ with 50MB of static data, achieving 0.032 ms per triple compared to C-SPARQL’s 0.952 ms per triple.
  • CQELS exhibits higher memory consumption in dynamic streaming scenarios due to its eager execution and asynchronous stream handling, particularly when processing multiple streams.
  • C-SPARQL ensures correct and complete output in multi-stream environments due to its time-driven, batch-based execution, while CQELS suffers from output mismatches in such contexts.
  • C-SPARQL’s performance degrades and becomes unreliable when stream rates exceed a threshold, indicating a need for rate control in production use.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.