cpp/matlab/cpc_union_update_time.m (34 lines of code) (raw):
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
clf;
cpc10_8=load('../results/cpc_union_timing_lgk10_8way_gcc9.tsv');
cpc10_16=load('../results/cpc_union_timing_lgk10_16way_gcc9.tsv');
cpc12_16=load('../results/cpc_union_timing_lgk12_16way_gcc9.tsv');
cpc12_32=load('../results/cpc_union_timing_lgk12_32way_gcc9.tsv');
cpc12_32_java=load('../../results/cpc_union_update_timing_lgk12_32way.tsv');
hold on;
semilogx(cpc10_8(:,1), cpc10_8(:,5), 'linewidth', 2);
semilogx(cpc10_16(:,1), cpc10_16(:,5), 'linewidth', 2);
semilogx(cpc12_16(:,1), cpc12_16(:,5), 'linewidth', 2);
semilogx(cpc12_32(:,1), cpc12_32(:,7), 'linewidth', 2);
semilogx(cpc12_32_java(:,1), cpc12_32_java(:,3), 'linewidth', 2);
set(gca, 'fontsize', 16);
title 'Update time of CPC union'
xlabel 'number of distinct values'
legend('CPC lgk=10 8-way gcc9', 'CPC lgk=10 16-way gcc9', 'CPC lgk=12 16-way gcc9', 'CPC lgk=12 32-way gcc9', 'CPC lgk=12 32-way Java', 'location', 'northwest');
ylabel 'update time, nanoseconds'
grid minor on