Performance

F# – Speed test iter and map operations with array vs list

I have heard a few peo­ple argue that when it comes to per­for­mance crit­i­cal code you should pre­fer arrays over oth­er col­lec­tions (such as F#’s lists) as it ben­e­fits from sequen­tial reads (which is faster than seeks) and offers bet­ter mem­o­ry local­i­ty. To test that the­o­ry some­what, I want­ed to see if there is any …

F# – Speed test iter and map oper­a­tions with array vs listRead More »

Performance Test – String.Contains vs String.IndexOf vs Regex.IsMatch

To find out if a string con­tains a piece of sub­string, here are three sim­ple ways of going about it in C#, just to name a few: String.Contains String.IndexOf where the return val­ue is >= 0 Regex.IsMatch Out of curios­i­ty I want­ed to see if there was any notice­able dif­fer­ence in the per­for­mance of each …

Per­for­mance Test – String.Contains vs String.IndexOf vs Regex.IsMatchRead More »

Recording for my webinar with PostSharp

Again, I’d like to thank Igal Tabach­nik and SharpCrafters for invit­ing me to do the webi­nar, the record­ing of the ses­sion is now avail­able on their Vimeo chan­nel. Pseu­do Real Time Per­for­mance Mon­i­tor­ing with AOP and AWS Cloud­Watch from SharpCrafters on Vimeo.   Per­for­mance Mon­i­tor­ing with AOP and Ama­zon Cloud­Watch View more Pow­er­Point from Yan …

Record­ing for my webi­nar with Post­SharpRead More »

Slides and Source Code for my webinar with PostSharp

Fol­low­ing my recent webi­nar with SharpCrafters on how to set­up pseu­do real-time per­for­mance mon­i­tor­ing using Aspect Ori­ent­ed Pro­gram­ming and Ama­zon Cloud­Watch, I’d like to say thanks to the guys for hav­ing me, it was a great fun For any­one inter­est­ed, the source code is avail­able at: http://aop-demo.s3.amazonaws.com/RTPerfMonDemo.zip If you want to run the demo con­sole …

Slides and Source Code for my webi­nar with Post­SharpRead More »

PostSharp webinar

I will be doing a webi­nar with the good folks of Post­Sharp on the 22nd March to talk about the use of AOP and AWS Cloud­Watch as a pseu­do real-time per­for­mance mon­i­tor­ing tool (see high-lev­­el overview here). It’s a free webi­nar, it runs from 22nd March 3PM – 4PM GMT, the reg­is­tra­tion link is here. …

Post­Sharp webi­narRead More »

Performance Test – Binary serializers Part III

Note: don’t for­get to check out the Bench­marks page to see the lat­est round up of bina­ry and JSON seri­al­iz­ers.   Since my last round of bench­marks on bina­ry seri­al­iz­ers, there’s a new play­er in town – Mes­sage­Shark, which at the time of this writ­ing does not sup­port seri­al­iza­tion of fields, but offers com­pa­ra­ble speed …

Per­for­mance Test – Bina­ry seri­al­iz­ers Part IIIRead More »

Pseudo RealTime performance monitoring with AOP and AWS CloudWatch

This is some­thing I’ve men­tioned in my recent AOP talks, and I think it’s wor­thy of a wider audi­ence as it can be very use­ful to any­one who’s obsessed with per­for­mance as I am. At iwi, we take per­for­mance very seri­ous­ly and are always look­ing to improve the per­for­mance of our appli­ca­tions. In order for …

Pseu­do Real­Time per­for­mance mon­i­tor­ing with AOP and AWS Cloud­WatchRead More »

Performance Test – Binary serializers Part II

Note: don’t for­get to check out the Bench­marks page to see the lat­est round up of bina­ry and JSON seri­al­iz­ers. A lit­tle while ago I put togeth­er a quick per­for­mance test com­par­ing the BCL’s Bina­ry­For­mat­ter with that of Marc Grav­ell’s pro­­to­buf-net library (.Net imple­men­ta­tion of Google’s pro­to­col buffer for­mat). You can read more about my …

Per­for­mance Test – Bina­ry seri­al­iz­ers Part IIRead More »

Performance Test — SortedDictionary vs Dictionary vs Map vs Array

I stum­bled upon this inter­est­ing ques­tion on Stack­Over­flow today, Jon Harrop’s answer men­tions a sig­nif­i­cant over­head in adding and iter­at­ing over a Sorted­Dic­tionary and Map com­pared to using sim­ple arrays. Think­ing about it, this makes sense, the Sorted­Dic­tionary class sorts its con­stituent key-val­ue pairs by key, which will nat­u­ral­ly incur some per­for­mance over­head. F#‘s Map …

Per­for­mance Test — Sorted­Dic­tionary vs Dic­tio­nary vs Map vs ArrayRead More »

Performance Test — JSON serializers Part II

Note: Don’t for­get to check out Bench­marks page to see the lat­est round up of bina­ry and JSON seri­al­iz­ers. Fol­low on from my pre­vi­ous test which showed that the ServiceStack.Text JSON seri­al­izer was the top dog in town, I came across a lit­tle library called fastJ­son on code­plex so nat­u­rally I had to test it …

Per­for­mance Test — JSON seri­al­iz­ers Part IIRead More »

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close