GithubHelp home page GithubHelp logo

oguzergul / perfist Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 12 KB

Simple Web Application Performance Measurement Library

Home Page: https://www.npmjs.com/package/perfist

License: MIT License

JavaScript 100.00%
performance performance-analysis web-vitals

perfist's Introduction

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 

yarn

$ yarn add perfist

CDN

<script href="https://cdn.jsdelivr.net/npm/[email protected]" 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

perfist's People

Contributors

oguzergul avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.