Skip to content

Instantly share code, notes, and snippets.

View rickardvh's full-sized avatar

Rickard von Haugwitz rickardvh

View GitHub Profile
@rickardvh
rickardvh / measure.psm1
Last active February 3, 2023 10:52
Benchmark scripts for nopCommerce cache
using namespace System.Diagnostics
using namespace System.Threading
# This module contains two commandlets, Measure-Startup and Measure-Loadtest.
# Example invocations:
# > import-module .\measure.psm1
# > measure-startup -nopcompath C:\src\nopCommerce -warmup computers, electronics, cart
# > measure-loadtest -nopcompath C:\src\nopCommerce -requests 100 -throttlelimit 5
function Measure-Startup {