perfist

1.0.4 • Public • Published

PERFIST

Simple Web Application Performance Measurement Reporter

npm

Minified Size : 1kB
Minified + Gzipped Size : 569B

PERFIST is a simple web application measurement reporter. It can use in every browsers and does not effect your apps performance. If you want to see how to make integration. You can visit links below.

Installation

Install the dependencies and devDependencies and start the server.

npm

npm install perfist --save 

CDN

<script href="https://cdn.jsdelivr.net/npm/perfist@1.0.2" crossorigin="anonymous"></script>

Example usage for Vue.js App

<template>
    <h1>Perfist Example</h1>
</template>

<script>
import performance from "perfist";
export default {
  name: 'App',
  mounted() {
      performance.analysePerformance("localhost:3000"); // send data to localhost:3000
  }
}
</script>
This example shows us how to use perfist. Perfist accept one parameter as a URL
and it sends measurement data to this endpoint.

Example output:

{
  files: Array,
  measurement_date: Date,
  url: String,
  user_agent: String,
  ttfbTime: Number,
  fcpTime: Number,
  domLoadTime: Number,
  windowLoadTime: Number,
  resourcesLoadTime: Number
}

License

MIT

Package Sidebar

Install

npm i perfist

Weekly Downloads

5

Version

1.0.4

License

MIT

Unpacked Size

5.58 kB

Total Files

4

Last publish

Collaborators

  • oguzergul