西维蜀黍

【Ubuntu】Install Kvm

  ...


【Performance】性能测试(Performance Testing)

Software Performance Testing

In software quality assurance, performance testing is in general a testing practice performed to determine how a system performs in terms of responsiveness and stability under a particular workload. It can also serve to investigate, measure, validate or verify other quality attributes of the system, such as scalability, reliability and resource usage.

Performance testing, a subset of performance engineering, is a computer science practice which strives to build performance standards into the implementation, design and architecture of a system.

  ...


【Performance】性能

Computer Performance

In computing, computer performance is the amount of useful work accomplished by a computer system. Outside of specific contexts, computer performance is estimated in terms of accuracy, efficiency and speed of executing computer program instructions. When it comes to high computer performance, one or more of the following factors might be involved:

  • Short response time for a given piece of work.
  • High throughput (rate of processing work).
  • Low utilization of computing resource(s).
  • Fast (or highly compact) data compression and decompression.
  • High availability of the computing system or application.
  • High bandwidth.
  • Short data transmission time.
  ...


【Network】localhost

Localhost

In computer networking, localhost is a hostname that refers to the current computer used to access it. It is used to access the network services that are running on the host via the loopback network interface. Using the loopback interface bypasses any local network interface hardware.

Question

I have seen 127.0.0.1 is local host address. But what is it and what is the differences between this and my local adapter like LAN IP address or WLAN IP address. Is there any connection between this l27.0.0.1 and my LAN or WLAN Network card?

  ...


【Golang】Dependency Injection in Golang

Without frameworks

Dependency injection is passing a dependency to another object or structure. We do this as it allows the creation of dependencies outside the dependant object. This is useful as we can decouple dependency creation from the object being created. Lets look at an example of dependency injection in Go:

type DataStore interface {}

type PersonResource struct {
	Store DataStore
}

func New(store DataStore) *PersonResource {
	return &PersonResource{Store: store}
}
  ...