AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   BenchmarkTool - The tool to benchmark your HL1 Server v0817 (https://forums.alliedmods.net/showthread.php?t=85974)

Ir0n1E 02-18-2009 17:50

BenchmarkTool - The tool to benchmark your HL1 Server v0817
 
1 Attachment(s)
Introduction

With the AMXX BenchmarkTool you can benchmark Half-Life 1 Server. It is
meant for root server admins. It can read FPS, CPU-Load and System-Load. It
displays diagrams with Google Chart API.
You need AMXX and at your choice PodBot.

Updates
  • You can use the plugin every HL1 Server.
  • result.html shows CPU-model and Game/Mod, now.
  • Plugin uses cvar pointer.
  • The screenshot section on my website has been updated

Notes
  • The plugin updates the config automaticly.
    The backup file is benchmark.cfg_bak.
  • For further changes see ChangeLog.



Facts
  1. Name:
    • AMXX BenchmarkTool
  2. Version:
    • BETA 0817
  3. Operating System:
    • Linux / Windows limited
  4. License:
    • GPL v2
Installation
  1. Download the plugin and save it to your AMXX plugins dir.
  2. Register it in your plugins.ini.
  3. Reload the map, so the plugin can generate addons/amxmodx/configs/
    benchmark.cfg.
Usage

1. Basically
  • The BenchmarkTool uses this data dirs addons/amxmodx/data/benchmarktool/.
    Here you can find log-files and the result.html. Open the HTML file
    with w3m or an other console based browser with image support.
  • The minimum runtime is 300 Seconds, the maximum is 1200 Seconds
    [5min-20min].
    With a full benchmark [1200sec] you can use bench_chartall "1". Now,
    you get four charts with 1200 data points. Because of the character
    limitation, you can only display 300 points per chart. See: Google
    Chart FAQ.
  • With bench_minchart and bench_maxchart you can 'zoom' into the chart.
    E.g. you have a log-file with 600 Seconds, but the chart shows only
    each second value. Use bench_minchart and bench_maxchart to get first
    300 end last 300 Seconds.
2. Server Commands
  • bench_start
    Starts the benchmark. Runtime 1200sec/20min.
  • bench_stop
    Stops the benchmark before runtime end.
  • bench_chart
    Generates the Chart with Google Chart.
3. Script internal Options
  • bench_verbose "1"
    ☆ Prints status to Server-Console.
  • bench_onscreen "1"
    ☆ Prints status to HUD.
  • bench_withbots "0"
    ☆ Benchmarks with Bots [PodBot not included]
  • bench_minchart "0"
    ☆ Temporal initial value for the graph on x-axis.
  • bench_maxchart "1200"
    ☆ Temporal final value for the graph on the x axis.
  • bench_time "1200"
    ☆ Benchmark runtime.
  • bench_chartall "1"
    ☆ Displays 4 Charts. Can only be used with a runtime of 1200 sec. [See Screensshots]
  • bench_path "/path/to/amxx/"
    ☆ The absolute path to the AMXX dir.
    Importan: Without this parameter, the plugin can not find the way
    to /proc. Without this dir, set bench_systemfiles "0".
  • bench_systemfiles "1"
    ☆ Should we use systemfiles?
    Runs on Linux Servers only. You must have a Shell.
  • bench_pidile ""
    ☆ Name of the PID-Files. E.g. -pidfile my_pidfile
    set bench_logfile "my_pidfile".
  • bench_logfile ""
    ☆ Set Logfile to generate a chart for an older benchmark. Normally
    you do not need this.
Notes

1. Generally
  • It is a BETA, so not all data goes to the chart. Look at the
    Screenshots to see what is in.
  • For full usage you need a Linux root server with a shell. Else the tool
    shows the FPS only. FTP/Windows Server should set bench_systemfiles "0".
2. Bugs
  • Bots: Sometimes you have to start/stop your benchmark twice, so that
    the Bots are joining/dropping your server.
  • result.html: At present all results are written into this file.
  • result.html: Analysis of System/Server data is not possible with older
    log-files.
Screenschots

See http://dreizehn.freehoster.ch/frog/p...shgerman#shots


For a german translation and the ChangeLog
See http://dreizehn.freehoster.ch/frog/p...-benchmarktool

BOYSplayCS 02-18-2009 17:52

Re: BenchmarkTool - The tool to benchmark you CS1.6 Server
 
Holy hell, this is nice!

+karma for sure.

Arkshine 02-18-2009 18:07

Re: BenchmarkTool - The tool to benchmark you CS1.6 Server
 
Maybe should you include httpdl ?

Ir0n1E 02-18-2009 18:13

Re: BenchmarkTool - The tool to benchmark you CS1.6 Server
 
I tried that, but teh Google Chart URL is to long.
I modified it a little bit, but it won't work.

Maybe someone else can hack httpdl.
In each case it is the better solution to get the images.
So I could display the result.html in motd.

Arkshine 02-18-2009 18:22

Re: BenchmarkTool - The tool to benchmark you CS1.6 Server
 
I mean, you write : #include <httpdl>

But this include is not attached here. People won't be able to compile the plugin.

Ir0n1E 02-18-2009 18:37

Re: BenchmarkTool - The tool to benchmark you CS1.6 Server
 
That is not the Problem.
Here this is a normal chart URL with 300 data sets.
http://tinyurl.com/a9ngxz
Try to download it with httpdl
Maybe it's only a buffer Problem


BOYSplayCS 02-18-2009 18:37

Re: BenchmarkTool - The tool to benchmark you CS1.6 Server
 
Either upload the httpdl.inc to the main post or take out #include <httpdl> in your code - or this plugin will not compile, as stated above. Without a compatible plugin, this could be visiting the Trash Bin soon.

Ir0n1E 02-18-2009 19:05

Re: BenchmarkTool - The tool to benchmark you CS1.6 Server
 
I don't see the problem...
includes are now

#include <amxmodx>
#include <fakemeta>
#include <amxmisc>
#include <cstrike>
#include <file>

The website copiler says that
Your plugin failed to compile! Read the errors below:

569046 successful compiles to date.
366221 failed compiles to date.
Old compiler: 101980 compiles before decommission.
This tool by: David "BAILOPAN" Anderson.

and amxxpc

Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

Header size: 1192 bytes
Code size: 33928 bytes
Data size: 43472 bytes
Stack/heap size: 16384 bytes; max. usage is unknown, due to recursion
Total requirements: 94976 bytes
Done.

BOYSplayCS 02-18-2009 20:49

Re: BenchmarkTool - The tool to benchmark you CS1.6 Server
 
#include <file>?

Arkshine 02-18-2009 20:56

Re: BenchmarkTool - The tool to benchmark you CS1.6 Server
 
It compiles fine locally. Don't know why the web compiler fails...Well, it's not the first time that it's messed up a lot.


All times are GMT -4. The time now is 23:15.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.