Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
Add LICENSE, PATENTS, CONTRIBUING.md, license headers
Browse files Browse the repository at this point in the history
  • Loading branch information
fredemmott committed Oct 7, 2014
1 parent 0829bd5 commit 24c722b
Show file tree
Hide file tree
Showing 25 changed files with 298 additions and 13 deletions.
49 changes: 49 additions & 0 deletions CONTRIBUTING.md
@@ -0,0 +1,49 @@
# Contributing to oss-performance
We want to make contributing to this project as easy and transparent as
possible.

We would greatly appreciate pull requests that:

- Replace fake data with real-world data. Please be careful to
anonymize/sanitize any user data before putting your pull request on github.
- Add additional targets - we're particularly interested in MediaWiki, Laravel,
and Drupal.
- Improve the performance of any supported engine. In practice, this probably
means configuration changes.

All targets should be representative of actual usuage, visiting a variety of
pages, with access patterns based on visitor logs. Additional dependencies/code
should also be minimized - for example, the Wordpress target does not depend
on any plugins (though one was used to generate the test data).

## Our Development Process

All development is on github; there are no Facebook-specific changes or code review
practices.

## Pull Requests
We actively welcome your pull requests.
1. Fork the repo and create your branch from `master`.
2. If you've added code that should be tested, add tests
3. If you've changed APIs, update the documentation.
4. Ensure the test suite passes.
5. Make sure your code lints.
6. If you haven't already, complete the Contributor License Agreement ("CLA").

## Contributor License Agreement ("CLA")
In order to accept your pull request, we need you to submit a CLA. You only need
to do this once to work on any of Facebook's open source projects.

Complete your CLA here: <https://code.facebook.com/cla>

## Issues
We use GitHub issues to track public bugs. Please ensure your description is
clear and has sufficient instructions to be able to reproduce the issue.

Facebook has a [bounty program](https://www.facebook.com/whitehat/) for the safe
disclosure of security bugs. In those cases, please go through the process
outlined on that page and do not file a public issue.

## License
By contributing to oss-performance, you agree that your contributions will be
licensed under its BSD license.
9 changes: 9 additions & 0 deletions HHVMDaemon.php
@@ -1,4 +1,13 @@
<?hh
/*
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/

require_once('HHVMStats.php');
require_once('PerfOptions.php');
Expand Down
9 changes: 9 additions & 0 deletions HHVMStats.php
@@ -1,4 +1,13 @@
<?hh
/*
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/

require_once('PerfSettings.php');
require_once('PerfTarget.php');
Expand Down
36 changes: 36 additions & 0 deletions LICENSE
@@ -0,0 +1,36 @@
Please note that this repository includes archives of the software being
benchmarked, which is licensed separately, under different terms; see the
notices inside the archives for details.

------

BSD License

For OSS benchmarking software

Copyright (c) 2014, Facebook, Inc. All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

* Neither the name Facebook nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
9 changes: 9 additions & 0 deletions NginxDaemon.php
@@ -1,4 +1,13 @@
<?hh
/*
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/

require_once('PerfOptions.php');
require_once('PerfSettings.php');
Expand Down
9 changes: 9 additions & 0 deletions NoEngineStats.php
@@ -1,4 +1,13 @@
<?hh
/*
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
require_once('PHPEngineStats.php');

trait NoEngineStats implements PHPEngineStats {
Expand Down
23 changes: 23 additions & 0 deletions PATENTS
@@ -0,0 +1,23 @@
Additional Grant of Patent Rights

"Software" means the OSS benchmarking software distributed by Facebook, Inc.

Facebook hereby grants you a perpetual, worldwide, royalty-free, non-exclusive,
irrevocable (subject to the termination provision below) license under any
rights in any patent claims owned by Facebook, to make, have made, use, sell,
offer to sell, import, and otherwise transfer the Software. For avoidance of
doubt, no license is granted under Facebook’s rights in any patent claims that
are infringed by (i) modifications to the Software made by you or a third party,
or (ii) the Software in combination with any software or other technology
provided by you or a third party.

The license granted hereunder will terminate, automatically and without notice,
for anyone that makes any claim (including by filing any lawsuit, assertion or
other action) alleging (a) direct, indirect, or contributory infringement or
inducement to infringe any patent: (i) by Facebook or any of its subsidiaries or
affiliates, whether or not such claim is related to the Software, (ii) by any
party if such claim arises in whole or in part from any software, product or
service of Facebook or any of its subsidiaries or affiliates, whether or not
such claim is related to the Software, or (iii) by any party relating to the
Software; or (b) that any right in any patent claim of Facebook is invalid or
unenforceable.
9 changes: 9 additions & 0 deletions PHP5Daemon.php
@@ -1,4 +1,13 @@
<?hh
/*
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/

require_once('NoEngineStats.php');
require_once('PerfOptions.php');
Expand Down
9 changes: 9 additions & 0 deletions PHPEngine.php
@@ -1,4 +1,13 @@
<?hh
/*
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/

require('PHPEngineStats.php');
require('Process.php');
Expand Down
9 changes: 9 additions & 0 deletions PHPEngineStats.php
@@ -1,4 +1,13 @@
<?hh
/*
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/

interface PHPEngineStats {
public function enableStats(): void;
Expand Down
9 changes: 9 additions & 0 deletions PerfOptions.php
@@ -1,4 +1,13 @@
<?hh
/*
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/

final class PerfOptions {
public bool $help;
Expand Down
9 changes: 9 additions & 0 deletions PerfSettings.php
@@ -1,4 +1,13 @@
<?hh
/*
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/

final class PerfSettings {

Expand Down
9 changes: 9 additions & 0 deletions PerfTarget.php
@@ -1,4 +1,13 @@
<?hh
/*
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/

abstract class PerfTarget {
public function install(): void { }
Expand Down
9 changes: 9 additions & 0 deletions Process.php
@@ -1,4 +1,13 @@
<?hh
/*
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/

abstract class Process {
protected ?resource $process;
Expand Down
14 changes: 1 addition & 13 deletions README.md
Expand Up @@ -84,16 +84,4 @@ demonstration data - this was used to create the database dump included here.
Contributing
============
We would greatly appreciate PRs that:
- Replace fake data with real-world data. Please be careful to
anonymize/sanitize any user data before putting your pull request on github.
- Add additional targets - we're particularly interested in MediaWiki, Laravel,
and Drupal.
- Improve the performance of any supported engine. In practice, this probably
means configuration changes.
All targets should be representative of actual usuage, visiting a variety of
pages, with access patterns based on visitor logs. Additional dependencies/code
should also be minimized - for example, the Wordpress target does not depend
on any plugins (though one was used to generate the test data).
Please see the CONTRIBUTING.md file for details.
9 changes: 9 additions & 0 deletions RequestMode.php
@@ -1,4 +1,13 @@
<?hh
/*
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/

newtype RequestMode = string;

Expand Down
9 changes: 9 additions & 0 deletions Siege.php
@@ -1,4 +1,13 @@
<?hh
/*
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/

require_once('PerfOptions.php');
require_once('PerfSettings.php');
Expand Down
9 changes: 9 additions & 0 deletions SiegeFields.php
@@ -1,4 +1,13 @@
<?hh
/*
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/

type SiegeField = int;
final class SiegeFields {
Expand Down
9 changes: 9 additions & 0 deletions SiegeStats.php
@@ -1,4 +1,13 @@
<?hh
/*
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/

require('SiegeFields.php');

Expand Down
9 changes: 9 additions & 0 deletions SugarCRMTarget.php
@@ -1,4 +1,13 @@
<?hh
/*
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/

require_once('PerfTarget.php');

Expand Down
9 changes: 9 additions & 0 deletions ToysTarget.php
@@ -1,4 +1,13 @@
<?hh
/*
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/

require_once('PerfTarget.php');

Expand Down
9 changes: 9 additions & 0 deletions WordpressTarget.php
@@ -1,4 +1,13 @@
<?hh
/*
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/

require_once('PerfTarget.php');

Expand Down
9 changes: 9 additions & 0 deletions hhvm_config_check.php
@@ -1,4 +1,13 @@
<?php
/*
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/

function feature(
$actual_value,
Expand Down

0 comments on commit 24c722b

Please sign in to comment.