allanlw / cache_size

Measures your cache_size in javascript!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Javascript Cache Size Measurement

In this repo is a simple script to measure the size of a CPU cache with javascript. It requires WebWorkers and ArrayBuffers, although could probably be adapted to not require either.

There really isn't that much special going on. Read cache_size_worker.js to get an idea of how the measurement is taking place - it is extensively commented. You can see a live demo here: https://fromwhenceitca.me/cache_size/cache_size.html

Licensed under the MIT license (see LICENSE file).

About

Measures your cache_size in javascript!

License:MIT License


Languages

Language:JavaScript 75.8%Language:C 17.1%Language:HTML 6.2%Language:Makefile 0.9%