Many of you might know, the String concat(+) is costly operation compare to StringBuffer or StringBuilder append() method. But you might not know the actual performance difference. Let me show you the performance difference with a simple test program, package test; public class StrVsBuffVsBuild { public static void main(String[] args) { int count=200000; System.out.println(“Number of Strings concat Operation is ‘”+count+”‘”); long st = System.currentTimeMillis(); String str = “”; for (int i = 0; i < count; i++) { str += "MyString"; } System.out.println("Time taken for String concat (+) Operation is '"+(System.currentTimeMillis()-st)+"' Millis"); st = System.currentTimeMillis(); StringBuffer sb = new StringBuffer(); for (int i = 0; i < count; i++) { sb.append("MyString"); } System.out.println("Time taken for StringBuffer.append() Operation is '"+(System.currentTimeMillis()-st)+"' Millis"); st = System.currentTimeMillis(); StringBuilder sbr = new StringBuilder(); for (int i = 0; i < count; i++) { sbr.append("MyString"); } System.out.println("Time taken for StringBuilder.append() Operation is '"+(System.currentTimeMillis()-st)+"' Millis"); } } Following are the output of the above test program, Number of Strings concat Operation is '200000' Time taken for String concat (+) Operation is '373933' Millis Time taken for StringBuffer.append() Operation is '19' Millis Time taken for StringBuilder.append() Operation is '5' Millis The String concat (+) took 6.2 Minutes , however others took only 19 / 5 milliseconds
Welcome to 100G networks! What about network performance monitoring?
A number of articles these days are talking about high speed networks. Look at some of the news and discussions. 11 th Oct 2011: ETT, Ciena deploy 100G network in Eastern Europe 28 th Oct 2011: Huawei to launch 100G network in Russia 1 st Nov 2011: US energy agency demos blazingly fast network They all point to one thing – The advent of 100 Gigabit Ethernet in the commercial segment.
Using Network Configuration Manager as a Trusted Inventory
Josh Stephens and Francois Caron discuss use cases for NCM, the SolarWinds Network Configuration Manager, that relate to Network Inventory, as opposed to more typical use cases such as configuration management and backup. NCM Inventory has an automatic discovery program that can rapidly and efficiency help you building a trusted inventory of your deployed network asset (routers, switches firewalls, load balancers). NCM comes with the tools to enrich and share this trusted inventory.
Cisco Mediatrace in NetFlow Analyzer
With Cisco Medianet , you can measure the performance of voice traffic on a router which are configured for Medianet NetFlow export.
Microsoft Releases Advance Notification for November 2011 Patch Tuesday
Microsoft released their advance notification for November 2011 patch Tuesday. Microsoft will release 4 bulletins on November 8 , 2011 addressing 4 vulnerabilities.
Cisco Medianet Reports in NetFlow Analyzer
After configuring Cisco devices for Medianet exports(as mentioned in the previous blog ), the next step is generating Medianet reports in NetFlow Analyzer.
Data representation and Unified Dashboards
There are many events that are measured in our day to day activities. It could be in terms of, and, derivatives of Time, Volume, Mass, Temperature, etc.. These measurements are generally viewed in real time and later stored for posterity
Cisco Medianet (Performance Monitor ) Configuration
In continuation to Cisco Medianet Introduction blog , This blog explains the configuration of Cisco routers to export Medianet related information .
How fast can you add a new rack of switches/routers and deploy them to production?
Network devices such as switches, routers, firewalls and load balancers have a profound impact on business continuity. When your business grows, your network also grows
Virtual Machine Sprawls: How can you keep them in check?
Is too much of a good thing bad? The answer is yes