Hi, I have created a GStreamer plugin. In my plugin, I add a simple test code, as follows:
long long int sum = 0;
for (long long int i=0; i< 1000; i++)
{
for(int j=0; j< 1000000; j++)
{
sum = sum + i + j;
}
}
when run in single thread in that plug-in, this part takes about 4.01s. when run in double threads, this part need takes about 8.02s.
However if I isolate to run the simple test code, that part is done in only takes about 3.78s.
why?
Hi,
Do you follow [Implementing a Custom Plugin] in the document? We have a custom plugin ‘dsexample’. Suggest you implement your usecase in this plugin.
Also if it is an issue in your usecase, please share a practical sample. We would like to check real usecase instead of dummy test code.