Raised This Month: $59 Target: $400
 14% 

BenchmarkTool - The tool to benchmark your HL1 Server v0817


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands        Approver:   Hawk552 (427)
Ir0n1E
Junior Member
Join Date: Feb 2009
Location: Germany
Old 02-18-2009 , 18:50   BenchmarkTool - The tool to benchmark your HL1 Server v0817
Reply With Quote #1

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
Attached Files
File Type: sma Get Plugin or Get Source (benchmarktool-0817-src.sma - 1456 views - 32.3 KB)

Last edited by Ir0n1E; 02-20-2009 at 16:48. Reason: Update beta0817
Ir0n1E is offline
BOYSplayCS
BANNED
Join Date: Apr 2008
Location: Gainesville, FL
Old 02-18-2009 , 18:52   Re: BenchmarkTool - The tool to benchmark you CS1.6 Server
Reply With Quote #2

Holy hell, this is nice!

+karma for sure.
BOYSplayCS is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-18-2009 , 19:07   Re: BenchmarkTool - The tool to benchmark you CS1.6 Server
Reply With Quote #3

Maybe should you include httpdl ?
Arkshine is offline
Ir0n1E
Junior Member
Join Date: Feb 2009
Location: Germany
Old 02-18-2009 , 19:13   Re: BenchmarkTool - The tool to benchmark you CS1.6 Server
Reply With Quote #4

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.
Ir0n1E is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-18-2009 , 19:22   Re: BenchmarkTool - The tool to benchmark you CS1.6 Server
Reply With Quote #5

I mean, you write : #include <httpdl>

But this include is not attached here. People won't be able to compile the plugin.
Arkshine is offline
Ir0n1E
Junior Member
Join Date: Feb 2009
Location: Germany
Old 02-18-2009 , 19:37   Re: BenchmarkTool - The tool to benchmark you CS1.6 Server
Reply With Quote #6

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

Ir0n1E is offline
BOYSplayCS
BANNED
Join Date: Apr 2008
Location: Gainesville, FL
Old 02-18-2009 , 19:37   Re: BenchmarkTool - The tool to benchmark you CS1.6 Server
Reply With Quote #7

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.
BOYSplayCS is offline
Ir0n1E
Junior Member
Join Date: Feb 2009
Location: Germany
Old 02-18-2009 , 20:05   Re: BenchmarkTool - The tool to benchmark you CS1.6 Server
Reply With Quote #8

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.

Last edited by Ir0n1E; 02-18-2009 at 20:23.
Ir0n1E is offline
BOYSplayCS
BANNED
Join Date: Apr 2008
Location: Gainesville, FL
Old 02-18-2009 , 21:49   Re: BenchmarkTool - The tool to benchmark you CS1.6 Server
Reply With Quote #9

#include <file>?
BOYSplayCS is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-18-2009 , 21:56   Re: BenchmarkTool - The tool to benchmark you CS1.6 Server
Reply With Quote #10

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.
Arkshine is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:43.


Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Theme made by Freecode