06-25-2009 12:51 PM
I wrote a VI in 7.1 to compare various string search functions
I found that match pattern is 3 times faster than the search split function
Did I do something wrong?
06-25-2009 02:40 PM
At first I thought the problem was that you were taking timestamps while other operations were happening, so I re-wrote your benchmark VI (attached below) to eliminate that possibility. But I still saw that Match Pattern was faster even when I made this change. I'm not sure why it's behaving differently now than when I benchmarked it in the past. Perhaps it has to do with your string size, or the fact that the match string is at the end...it may even have to do with the fact that I'm running a quad core machine now, whereas I was running a single core when I wrote that nugget 3 1/2 years ago.
Either way, thanks for pointing this out. I guess over time, even nuggets can become obsolete. 😉
02-13-2014 05:26 AM
Hi,
I ran Ben's test VI on my PC (i5, Win7 64 bit, Lv2013 32 bit) and still noticed that the "Search/Split String" is about 3 times faster than the "Match Pattern".