Hi,
Did you try to fetch everything in a single instruction, then filter the result by classname ? On a distributed backend, it will be faster (you asked one time directory, then the fetch is parallelized)
[ $fetchresult [] '~net.(bytes_sent|bytes_recv)' filter.byclass ] FILTER
beware : FETCH take a list : [ $token 'classname' { } x y ] FETCH . The signature you use is not supported anymore.
remark : you can write 1 s instead of 1000000.
remark : if you store millions of GTS, you can speed up the regexp search with REOPTALT function. try [ 'fast_cpu.usage_idle' 'mem.used' 'net.bytes_sent' 'net.bytes_recv' ] REOPTALT to generate the optimized regexp.
remark : = is not mandatory in the selector.
CEVAL is great for cpu intensive tasks, for example bucketize huge gts. Fetch is more i/o bound.