Performance

Using Protocol Buffers with API Gateway and AWS Lambda

AWS announced bina­ry sup­port for API Gate­way in late 2016, which opened up the door for you to use more effi­cient bina­ry for­mats such as Google’s Pro­to­col Buffers and Apache Thrift. Why? Com­pared to JSON — which is the bread and but­ter for APIs built with API Gate­way and Lamb­da — these bina­ry for­mats can pro­duce sig­nif­i­cant­ly small­er pay­loads. At scale, …

Using Pro­to­col Buffers with API Gate­way and AWS Lamb­daRead More »

AWS Lambda — comparing platform performances

As Lamb­da adds node­js 6.10 to its sup­port­ed plat­forms I won­dered if there’s any per­for­mance dif­fer­ences between the plat­forms. Thank­ful­ly the tem­plates in the Server­less frame­work make it a rel­a­tive breeze to test it out with a sim­ple Hel­loWorld func­tion.   The Test see the test code here. I cre­at­ed a sim­ple Lamb­da func­tion for each plat­form that will …

AWS Lamb­da — com­par­ing plat­form per­for­mancesRead More »

MS Bond benchmark updated

DISCLAIMER : as always, you should bench­mark against your pay­load and use case, the bench­mark num­bers I have pro­duced here is unlike­ly to be rep­re­sen­ta­tive of your use cas­es and nei­ther is any­body else’s bench­mark num­bers. You can use the sim­ple test har­ness I cre­ated and see these exam­ple code to bench­mark against your par­tic­u­lar …

MS Bond bench­mark updat­edRead More »

MS Bond and Chiron benchmarked

DISCLAIMER : as always, you should bench­mark against your pay­load and use case, the bench­mark num­bers I have pro­duced here is unlike­ly to be rep­re­sen­ta­tive of your use cas­es and nei­ther is any­body else’s bench­mark num­bers. You can use the sim­ple test har­ness I cre­ated and see these exam­ple code to bench­mark against your par­tic­u­lar …

MS Bond and Chi­ron bench­markedRead More »

Binary and Json benchmarks updated

It’s been a while since I last updat­ed my bina­ry and JSON seri­al­iz­er bench­marks, so here I round up the lat­est ver­sions of the seri­al­iz­ers on here.   DISCLAIMER : as always, you should bench­mark against your pay­load and use case, the bench­mark num­bers I have pro­duced here is unlike­ly to be rep­re­sen­ta­tive of your …

Bina­ry and Json bench­marks updat­edRead More »

Fasterflect vs HyperDescriptor vs FastMember vs Reflection

The oth­er day I had a small task to inspect return val­ues of meth­ods and if the fol­low­ing prop­er­ty exists then set it to emp­ty array.         pub­lic long[] Achieve­ments { get; set; } This need­ed to hap­pen once on every web request, and I decid­ed to imple­ment it as a Post­Sharp attribute. WHY I …

Faster­flect vs Hyper­De­scrip­tor vs Fast­Mem­ber vs Reflec­tionRead More »

Beware of implicit boxing of value types

In the last post, we looked at some inef­fi­cien­cies with ref­er­ence types in .Net and per­haps over­sold val­ue types a lit­tle  In any case, now that we’ve made the ini­tial sale and you’re back for more, let’s talk about some pit­falls wrt the use of val­ue types you should be aware of. Specif­i­cal­ly let’s focus on cas­es …

Beware of implic­it box­ing of val­ue typesRead More »

Smallest .Net ref type is 12 bytes (or why you should consider using value types)

(Update 2015/07/21 : read the next post in this series to learn about the places where implic­it box­ing hap­pens with val­ue types and how you can pre­vent them)   I chanced upon Sasha Goldshtein’s excel­lent book, Pro .Net Per­for­mance : Opti­mize Your C# Appli­ca­tion, a few years back and I thor­ough­ly enjoyed it. Even though …

Small­est .Net ref type is 12 bytes (or why you should con­sid­er using val­ue types)Read More »

Binary and Json benchmarks updated

DISCLAIMER : as always, you should bench­mark against your pay­load and use case, the bench­mark num­bers I have pro­duced here is unlike­ly to be rep­re­sen­ta­tive of your use cas­es and nei­ther is any­body else’s bench­mark num­bers. You can use the sim­ple test har­ness I cre­at­ed and see these exam­ple code to bench­mark against your par­tic­u­lar …

Bina­ry and Json bench­marks updat­edRead More »

Binary and Json benchmarks updated

DISCLAIMER : as always, you should bench­mark against your pay­load and use case, the bench­mark num­bers I have pro­duced here is unlike­ly to be rep­re­sen­ta­tive of your use cas­es and nei­ther is any­body else’s bench­mark num­bers. You can use the sim­ple test har­ness I cre­ated and see these exam­ple code to bench­mark against your par­tic­u­lar …

Bina­ry and Json bench­marks updat­edRead 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